minor change in gravatar display

and code shrinking