add code to set permissions on raster. have not tested yet