For a given row, it looks like you just superimpose the image in the left column and the image in the middle column to get the image in the right column. All dots are erased, and anything outside the perimeter of the image is also erased (see the middle row). I’m confident you had it right with F