updates image links and images