Used getTemplate function for image tag