Simply paste the following snippet and you will be able to automatically add the author gravatars to each post.

Snippet Source/Credit: emoticode