diff --git a/theme/theme.inc b/theme/theme.inc
index ba2fd99..37824ca 100644
--- a/theme/theme.inc
+++ b/theme/theme.inc
@@ -116,7 +116,10 @@ function theme_imageflow_image_style($variables) {
 
   // Determine the url for the styled image.
   // Base path gets stripped out for the reflect script.
-  $variables['path'] = image_style_url($variables['style_name'], $variables['path']);
+  if($variables['style_name']) {
+    $variables['path'] = image_style_path($variables['style_name'], $variables['path']);
+  }
+  $variables['path'] = file_create_url($variables['path']);
   $variables['path'] = str_replace ($GLOBALS['base_url'], '', $variables['path']);
   return theme('imageflow_image', $variables);
 }
