updates image