Bitfields for replacement rule:
Bit(s)	Description	)
 2	invert image before applying rule
 1-0	function (00 force, 01 AND, 10 OR, 11 XOR)