Store raster to memory / save to file