update image handling and display