Introduce helper to convert kcolor to Gif_Color.
Color histogram rewrite: store gamma-corrected colors in the hgram.