Fix in tiling logic

The tiling logic, when writing out the overall extent in the metadata, was not taking into account the changes to the east and south border of the raster due to the tile division not rounding exactly.