Lots of Little Things

Made bars for gain and threshold, made it so that
gain/threshold/grayscale changes show up dynamically, split image
exporting into another function to save time on most calculations, and
rearranged the buttons and bars.