updates image paths