Simply paste the following snippet and you will be able to automatically add the author gravatar to each of their posts respectively.

Snippet Source/Credit: emoticode