#6101: amend update hook to also include imageapi_optimize.