JCLOUDS-311 - support specifying an imageChooser function in TemplateBuilder