This is a very simple gravatar plugin which illustrates the use of the getIcon() API.
Note: Related to this blog post.