This plugin allows you to generate a gravatar URL. It also shows LiveJournal userpics in comments.
Place gravatar.php to your plugins folder and activate it in control panel. Place /gravatars/ directory to your plugins folder and CHMOD it 777.
In comments.php add the following string where it is needed: " class="gravatar" alt="Gravatar Icon" />