update image handling