Added avatar generation and storage whn the user is created/updated