Allow modification of gallery template

At the moment the gallery template can not be changed. It would be helpful to change the gallery template, e.g. for render the main picture another way then the gallery.