updating image ref