Histogram normalization

Issue: I converted the image to a single channel one but it is displayed with all three colours, yet the histogram is normalized.

`max` and `min` are inbuilt python functions. Do not replace them with your values, use some other name.