New getImageData implementation. Result is mostly correct, but still the first 4 colors are totally wrong.