Update a image file.