added support for the RGB palette