Added getPixel() method