added getPixels