Determine pixel's location (x,y) in the image