refs #34: 1D median filter is replaced with 2D median filter
refs #34: tiffs could be saved as float32, uint8 or uint16
BUG: tiff scaling for negative values corrected