add API function to unset avatar