moved getpixels