method getPixel in Image