JCLOUDS-331 - support specifying an imageChooser function in TemplateBuilder