diff --git a/batch.nodes.inc b/batch.nodes.inc
index 613f79f..be5aa5a 100644
--- a/batch.nodes.inc
+++ b/batch.nodes.inc
@@ -215,6 +215,40 @@ function blogger_importer_batch_nodes_process($initial_entries, &$context) {
         }
       }
 
+      // Download images.
+      $directory = variable_get('blogger_importer_image_path', 'blogger_importer');
+      if (!empty($directory)) {
+        // Search for blogspot image references (thumbnails and linked images).
+        if (preg_match_all('/(href|src)="(http:\/\/.*?\.blogspot\.com\/(.*?))"/', $node->body[LANGUAGE_NONE][0]['value'], &$matches)) {
+          // Set the destination directory.
+          $directory = 'public://' . $directory . '/';
+          $replace = array();
+          // Loop through image matches.
+          foreach ($matches[2] as $key => $url) {
+            $filepath = $directory . $matches[3][$key];
+            // Image was already downloaded.
+            if (file_exists($filepath)) {
+              $replace[$url] = file_create_url($filepath);
+            }
+            // Image hasn't been download.
+            else {
+              // Create directory for new file.
+              file_prepare_directory(dirname($filepath), FILE_CREATE_DIRECTORY);
+              // Download the image.
+              $response = drupal_http_request($url);
+              // Image downloaded successfully.
+              if ($response->code == 200) {
+                // Save it.
+                file_save_data($response->data, $filepath, FILE_EXISTS_REPLACE);
+                $replace[$url] = file_create_url($filepath);
+              }
+            }
+          }
+          // Replace image URLs in node body.
+          $node->body[LANGUAGE_NONE][0]['value'] = strtr($node->body[LANGUAGE_NONE][0]['value'], $replace);
+        }
+      }
+
       //dsm($node);
 
       // DEFINE A HOOK FOR OTHER MODULES TO ADD/MODIFY THE NEW NODE CONTENTS OR OTHERWISE ACT ON THEM
diff --git a/blogger_importer.module b/blogger_importer.module
index e0ef625..eb8843d 100644
--- a/blogger_importer.module
+++ b/blogger_importer.module
@@ -187,6 +187,12 @@ function blogger_importer_settings_form() {
     );
   }
 
+  $form['blogger_importer_image_path'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Local path where Blogger images will be stored'),
+    '#description' => t("Images embedded within your blog posts (and currently hosted on Blogger's website) will be downloaded and stored in this folder, and the image references will be replaced. Leave empty to bypass this feature."),
+    '#default_value' => variable_get('blogger_importer_image_path', 'blogger_importer'),
+  );
 
   $form['#validate'][] = 'blogger_importer_settings_form_validate';
   
