properly implement createMutableImageData
implement getRGB