Nicer way of writing gravatar method