Created more efficient maximum raster creation