use Uint32Array to optimize ImageData.copyPixels