added avatar field to AbstractUserProfile and api update functions