updated MosaicMaker to handle different image sizes, so that they will be cropped to fit a whole number of tiles in width and height without overlap