Transfer GRAYSCALE_1BPP and RGB_24BPP arrays when possible.