--- cloudfront.module	2009-09-09 15:49:34.000000000 +0000
+++ cloudfrontNew.module	2009-09-09 15:48:45.000000000 +0000
@@ -36,10 +36,12 @@ function cloudfront_create_url($imagecac
   // 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;
-  }
-  
+
+    $ignore_missing_files = $preset_info['actions'][0]['data']['ignore_missing_files'];
+    if (!file_exists($imagecache_path) && (1 !== $ignore_missing_files)) {
+      return false;
+    }
+
   $sql = <<<SQL
     SELECT 
       * 
@@ -228,6 +230,13 @@ function cloudfront_imagecache_send_form
     '#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 +395,4 @@ function cloudview_theme_imagecache($nam
   }
   
   return theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes = null);
-}
\ No newline at end of file
+}
