code is bloated, played around with histograms and hsv colour space