Implemented getpixel