diff --git a/modules/asset_imagecache.inc b/modules/asset_imagecache.inc
index 597172c..ec6f65b 100644
--- a/modules/asset_imagecache.inc
+++ b/modules/asset_imagecache.inc
@@ -1,6 +1,5 @@
 <?php
 // $Id$
-
 function imagecache_asset_settings(){
   $form[] = array('#value' => '<p>Select which imagecache presets should be available to use as asset formatters.</p>');
   $presets = imagecache_presets();
@@ -37,7 +36,7 @@ function imagecache_asset_formatter($op='info',$asset=null,$attr=array()){
         // this is the easiest albeit indirect way i can see to generate the image
         $result = drupal_http_request(url(file_create_url($path)));
       }
-      $size = image_get_info(file_create_path('imagecache/'.$attr['format'].'/'.$asset->filepath));
+      $size = image_get_info(file_create_path('imagecache/'.$attr['format'].'/'.str_replace('files/','',$asset->filepath)));
       $form['width'] = array('#type' => 'hidden', '#value' => $size['width']);        
       $form['height'] = array('#type' => 'hidden', '#value' => $size['height']);
       $form['resizable'] = array();
@@ -54,7 +53,7 @@ function imagecache_asset_formatter($op='info',$asset=null,$attr=array()){
       return $form;
       break;
     case 'img':
-      return file_create_path('imagecache/'. $attr['format'] .'/'. $asset->filepath);
+      return file_create_path('imagecache/'. $attr['format'] .'/'. str_replace('files/','',$asset->filepath));
     case 'preview':
       return theme('imagecache', $attr['format'], $asset->filepath, '', '', array('width' => '100'));
     case 'render':

