Wpsnipp – If you enable gravatars on your website, you can allow users to post comments without being registered. At the same time you will be able to recognize regular visitors through their gravatars. Adding this code to your wordpress theme will use the Gravatar service to display your avatar. The number 80 refers to the avatar size in pixels.
echo get_avatar( get_the_author_email(), '80' );