diff --git modules/image/image.module modules/image/image.module
index 23f2e9b..ebecac4 100644
--- modules/image/image.module
+++ modules/image/image.module
@@ -76,7 +76,7 @@ function image_menu() {
   // through the menu system.
   // If clean URLs are enabled and the image derivative already exists,
   // PHP will be bypassed.
-  $directory_path = file_stream_wrapper_get_instance_by_scheme('public')->getDirectoryPath();
+  $directory_path = variable_get('file_public_path', conf_path() . '/files');
   $items[$directory_path . '/styles/%image_style'] = array(
     'title' => 'Generate image style',
     'page callback' => 'image_style_deliver',
