Merging operation, and snap image size to pixelsize