persist the avatar of the account