fixed getPixel