added getPixels.