Added getPixels() function

Nice to have access to pixel buffer.