Added grayscale histogram normalization for images with high brightness