- convert data to a bytearray to more consistently get color info accros...

Resolves #2227.