Ensure pixel coordinates point to the bottom left of the pixel not the