Updates to copyPixels.