gui: fix pixel info on flipped images

Flipped images were still using the original image instead of
flipping the coordinates, thus returning the wrong data. Let's just
flip the y-axis to find the right location in the original image.