updates image references