The following snippet below will let you use gravatar image as WordPress favicon.

Snippet Source/Credit: forrst.com