Added support for custom color tables.