added variables for extent and snap raster