A few major changes made in order to get correct functionality and speed increase. Histogram now generates only to max label contained in ROI.