update img structure