add template for image upload directive