modified luminance histogram to use boxes + color