added hmap_c for color images