update controller and template for multivalued images