got rid of corrected_int16, only generated if really needed now. Downsampled image is now saved as float due to problems arising with small value range of int16.