Bug fix for template option support

Apologies, my PR of 2 days ago missed that the options also needed to be passed to layoutTemplate