Find the x, y coördinates of a pixel in an image