Fixed positioning problems for images

Images were being displayed a couple of pixels off, and getPixelColour
was also slightly wrong.