Fixed bug where the image min/max scaling was not being reset properly when a new file was loaded through the gui. fixes #21