The outer loop iterates on the rows of pixels
Only the top half of the image is processed in this method because