CPAN (Comprehensive Perl Archive Network) is a goldmine of useful perl modules. Like Apache::Imager::Resize, which does all of the heavy lifting of resizing and caching images for a photo gallery.

As a result, I now can easily display all of the pictures in an album beneath the map.

Next would be some Javascript to pan to a picture when you click on the picture..