This program is capable of creating a Photomosaic of any selected image using any directory of images. Simply run the program and select an image and a directory containing other image files (the more the better the results). The files from the directory will be automatically assembled to create a Photomosaic of the original image. Parameters for output of the image are contained at the beginning of the function and may be modified to tweak the resulting output image.
I found better results by resizing my image before the processing began. This allowed the mosaic images to be better displayed when zoomed in. The resulting jpg was large (about 20mb), but not a problem for a modern machine.
It could probably be better optimized based on image.