update code for images