Updated the avatar callback