updating image file