Fixed bug getting the pixel color on retina