updating image reference