Remove rewriting of 'options' variable
Add boolean to optionally render template of gallery