gallery.py: Add a 'version' argument