Added some abstractions to make color management simpler.