Index: cloudfront.module
===================================================================
--- cloudfront.module	(revision 744)
+++ cloudfront.module	(working copy)
@@ -36,10 +36,18 @@
   // By returning false we give imagecache a chance to regenerate this image and
   // send the new version to s3.
   $imagecache_path = file_directory_path() .'/imagecache/'. $imagecache_namespace .'/'. basename($path);
-  if (!file_exists($imagecache_path)) {
-    return false;
-  }
-  
+
+    $preset_array = $preset_info['actions'];
+    foreach ($preset_array as $preset) {
+       if ($preset['action'] == 'cloudfront_imagecache_send') {
+         $ignore_missing_files = $preset['data']['ignore_missing_files'];
+         break;
+       }
+    }
+    if (!file_exists($imagecache_path) && (1 != $ignore_missing_files)) {
+      return false;
+    }
+
   $sql = <<<SQL
     SELECT 
       * 
@@ -228,6 +236,13 @@
     '#required' => true,
     '#title' => 'Unique Name',
   );
+  $form['ignore_missing_files'] = array(
+    '#type' => 'checkbox',
+    '#default_value' => (isset($data['ignore_missing_files'])) ? $data['ignore_missing_files'] : '',
+    '#description' => 'Check if you want to ignore missing files.  Useful for distributed environments',
+    '#required' => false,
+    '#title' => 'Ignore missing files',
+  );
   
   return $form;
 }
@@ -386,4 +401,4 @@
   }
   
   return theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes = null);
-}
\ No newline at end of file
+}
