Sample code for producing photo-mosaics in Perl/Imagemagick, Ruby/RMagick and Python/PIL.