optimize updating of images so we don't close/reopen them