update config and image