diff --git a/extlink.js b/extlink.js
index 0c09b6b..56c52f2 100644
--- a/extlink.js
+++ b/extlink.js
@@ -125,12 +125,16 @@ Drupal.extlink.attach = function (context, settings) {
  */
 Drupal.extlink.applyClassAndSpan = function (links, class_name) {
   var $links_to_process;
-  if (parseFloat($().jquery) < 1.2) {
-    $links_to_process = $(links).not('[img]');
-  }
-  else {
-    var links_with_images = $(links).find('img').parents('a');
-    $links_to_process = $(links).not(links_with_images);
+  if(Drupal.settings.extlink.extImgClass){
+    $links_to_process = $(links);
+  }else {
+    if (parseFloat($().jquery) < 1.2) {
+      $links_to_process = $(links).not('[img]');
+    }
+    else {
+      var links_with_images = $(links).find('img').parents('a');
+      $links_to_process = $(links).not(links_with_images);
+    }
   }
   $links_to_process.addClass(class_name);
   var i;
diff --git a/extlink.module b/extlink.module
index a0fee7b..9139b00 100644
--- a/extlink.module
+++ b/extlink.module
@@ -23,8 +23,9 @@ function extlink_page_build() {
   drupal_add_js($path .'/extlink.js', array('every_page' => TRUE));
   drupal_add_js(array('extlink' => array(
     'extTarget'     => variable_get('extlink_target', 0),
-	'extTargetValue'=> variable_get('extlink_target_value', ''),
+    'extTargetValue'=> variable_get('extlink_target_value', ''),
     'extClass'      => variable_get('extlink_class', 'ext'),
+    'extImgClass'   => variable_get('extlink_img_class', 0),
     'extSubdomains' => variable_get('extlink_subdomains', 1),
     'extExclude'    => variable_get('extlink_exclude', ''),
     'extInclude'    => variable_get('extlink_include', ''),
@@ -55,6 +56,14 @@ function extlink_admin_settings() {
     '#description' => t('Places an !icon icon next to mailto links.', array('!icon' => theme('image',array('path' => drupal_get_path('module', 'extlink') . '/mailto.png', 'alt' => t('Email links icon'))))),
   );
 
+  $form['extlink_img_class'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Place an icon next to image links'),
+    '#return_value' => TRUE,
+    '#default_value' => variable_get('extlink_img_class', FALSE),
+    '#description' => t('If checked, images wrapped in an anchor tag will be treated as external links.'),
+  );
+
   $form['extlink_subdomains'] = array(
     '#type' => 'checkbox',
     '#title' => t('Exclude links with the same primary domain.'),
