applyHistogramEq works

cleaned up the code a bit
problem w/histogram was order of operations
altered adjustContrast to be int-ier and less QRgb-ey
add histogram to updateImagePreview()