update img file