add greyscale, flattend color histogram functions