Implemented getPixel