diff --git a/sites/all/modules/contrib/gravatar/gravatar.module b/sites/all/modules/contrib/gravatar/gravatar.module
index 28329e2..0fda5a6 100644
--- a/sites/all/modules/contrib/gravatar/gravatar.module
+++ b/sites/all/modules/contrib/gravatar/gravatar.module
@@ -241,6 +241,37 @@ function gravatar_form_comment_form_alter(&$form, $form_state) {
 }
 
 /**
+ * The comment is being viewed. This hook can be used to add additional data to the comment before theming.
+ *
+ * @param $comment
+ *   Passes in the comment the action is being performed on.
+ * @param $view_mode
+ *   View mode, e.g. 'full', 'teaser'...
+ * @param $langcode
+ *   The language code used for rendering.
+ *
+ * @see hook_entity_view()
+ */
+function gravatar_comment_view($comment, $view_mode, $langcode) {
+  //gravatar image of anonymous commenters
+  if($comment->uid == 0) {
+    $comment->picture = gravatar_get_gravatar($comment->mail);    
+  }
+}
+
+/**
+ * Process variables for comment.tpl.php.
+ *
+ * @see comment.tpl.php
+ */
+function gravatar_preprocess_comment(&$vars) {    
+    if(!$vars['picture']) {
+      $vars['picture']  = theme('image', array('path' => $vars['comment']->picture));
+    }
+}
+
+
+/**
  * Implements hook_form_FORM_ID_alter().
  *
  * @todo Improve message shown to user.
