update image and file