Finished implementing the actual API for creating mosaics