added pre-creation of avatars during save and passing back avatar urls via data in json