updates image tag