playing with histograms. adding a widget for thresholding.