Basic infrastructure for colormap handling.