updates image paths.