add gravatar global function.