replaced to use Array<uint8_t>, generic color space