Updated raster task to only look for raster file types