Added much of the photomosaic code
Merge