Only process the image 20 times instead of 80, and use its width and heigh to determine the composite X and Y.