This code writes tiffs and preserves raster values(MATLAB)