--- image.module.orig	2008-03-22 11:38:00.000000000 +0100
+++ image.module	2008-03-24 21:19:41.000000000 +0100
@@ -133,7 +133,7 @@ function image_menu() {
  * Implements hook_cron. (deletes old temp images)
  */
 function image_cron() {
-  $path = variable_get('image_default_path', 'images') .'/temp';
+  $path = file_directory_path() .'/'. variable_get('image_default_path', 'images') .'/temp';
   $files = file_scan_directory(file_create_path($path), '.*');
   foreach ($files as $file => $info) {
     if (time() - filemtime($file) > 60*60*6) {
@@ -825,7 +825,7 @@ function _image_build_derivatives($node,
  * Creates an image filename.
  */
 function _image_filename($filename, $label = IMAGE_ORIGINAL, $temp = FALSE) {
-  $path = variable_get('image_default_path', 'images') .'/';
+  $path = file_directory_path() .'/'. variable_get('image_default_path', 'images') .'/';
   if ($temp) {
     $path .= 'temp/';
   }
