Index: image.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.module,v
retrieving revision 1.277
diff -u -r1.277 image.module
--- image.module	2 Sep 2008 16:41:56 -0000	1.277
+++ image.module	13 Sep 2008 03:07:28 -0000
@@ -725,8 +725,9 @@
  */
 function _image_check_settings() {
   // File paths
-  $image_path = file_create_path(file_directory_path() .'/'. variable_get('image_default_path', 'images'));
-  $temp_path = rtrim($image_path, '/') .'/temp';
+  $image_path = rtrim(variable_get('image_default_path', 'images'), '/');
+  $image_path = file_create_path(file_directory_path() .'/'. $image_path);
+  $temp_path = $image_path .'/temp';
 
   if (!file_check_directory($image_path, FILE_CREATE_DIRECTORY, 'image_default_path')) {
     return false;
