update img sample