allow to write uncompressed file
block-wise implementation of image resampling