diff --git a/lib/Gregwar/Image.php b/lib/Gregwar/Image.php
index <HASH>..<HASH> 100644
--- a/lib/Gregwar/Image.php
+++ b/lib/Gregwar/Image.php
@@ -468,7 +468,7 @@ class Image
             $this->save($file, $type, $quality);
         }
 
-        return $this->getFilename($this->file);
+        return $this->getFilename($file);
     }
 
     /**
Fix a mistake on file caching