update image file