Crop GDAL raster to arbitrary number of tiles