--- fancybox.module	2010-08-17 22:39:53.463825162 +0200
+++ fancybox.module	2010-08-17 22:50:07.141325094 +0200
@@ -514,11 +514,16 @@
 
     //$href_uri = 'public://styles/fancybox/' . $item['filename'];
     $style_name = isset($settings['imagefield']['imagecache_preset']) ? $settings['imagefield']['imagecache_preset'] : 0;
-    $style_path = image_style_path($style_name, $item['uri']);
-    if (!file_exists($style_path)) {
-      $style_path = image_style_url($style_name, $item['uri']);
+    if ($style_name) {
+      $style_path = image_style_path($style_name, $item['uri']);
+      if (!file_exists($style_path)) {
+        $style_path = image_style_url($style_name, $item['uri']);
+      }
+      $variables['path'] = file_create_url($style_path);
+    }
+    else {
+      $style_path = file_create_url($item['uri']);
     }
-    $variables['path'] = file_create_url($style_path);
     $href = file_create_url($style_path);
 
     $element[$delta] = array(
