updates image path