optimize copyIndexedColorData by storing colors in 32-bit chunks; #2890