added image upload to template