added a gravatar url generation function to the user-model