One picture (pic_1)
Another picture (pic_2)
pixelwise: pic_1 - pic_2
pixelwise: average of pic_1 and pic_2
pixelwise: (average of pic_1 and pic_2) - pic_1
pixelwise: (average of pic_1 and pic_2) - pic_2
pixelwise: sum of ((average of pic_1 and pic_2) - pic_1) and ((average of pic_1 and pic_2) - pic_2)
diff_pixel x1 x2 := if x2 > x1 then 0 else x1 - x2