gallery.py: add caption title/alt to images.