diff --git a/library/Class/Localisation.php b/library/Class/Localisation.php
index 1df07b4f9ff813923bfef9924a86598ba6070674..11f0d81afba406ee0ae1c31ffceabd67cdbcb1eb 100644
--- a/library/Class/Localisation.php
+++ b/library/Class/Localisation.php
@@ -82,7 +82,7 @@ class Class_Localisation extends Storm_Model_Abstract {
 			$new_image="bib_".$this->getBib()->getId()."_localisation_".$this->getId().".".$extension;
 			if ($image == $new_image)
 				return true;
-			$root=$this->getImagePath();
+			$root=$this->getImageLocalisationsPath();
 			self::getFileSystem()->rename($root.$this->getImage(), $root.$new_image);
 			$this->setImage($new_image);
 			Class_Localisation::getLoader()->save($this);
@@ -98,15 +98,15 @@ class Class_Localisation extends Storm_Model_Abstract {
 		parent::beforeDelete();
 		// Supprimer l'image
 		$image=$this->getImage();
-		$image=$this->getImagePath().$image;
+		$image=$this->getImageLocalisationsPath().$image;
 		if(self::getFileSystem()->file_exists($image))
 			self::getFileSystem()->unlink($image);
 	}
 
 
-	protected function getImagePath($type = 'localisations')
+	protected function getImageLocalisationsPath()
 	{
-		return self::getFileSystem()->getcwd()."/userfiles/photobib/".$type."/";
+		return self::getFileSystem()->getcwd()."/userfiles/photobib/localisations/";
 	}
 	// ----------------------------------------------------------------
 	// Rend les caracteristiques de l'image pour un plan
@@ -118,9 +118,11 @@ class Class_Localisation extends Storm_Model_Abstract {
 			return [];
 
 		$image=$plan->getImage();
-		$img = $this->getImagePath('plans').$image;
+		$img = "/userfiles/photobib/plans/".$image;
     if ($image == "" or (self::getFileSystem()->file_exists(self::getFileSystem()->getcwd().$img)==false))
 			return false;
+
+		xdebug_break();
 		$ret=self::getFileSystem()->getimagesize(getcwd().$img);
 		$ret["url"]=BASE_URL.$img;
 		return $ret;
@@ -167,7 +169,12 @@ class Class_Localisation extends Storm_Model_Abstract {
 
 
 	protected function asArrayForJson() {
-		return ['url' => $this->getImagePlan(),
+
+		if (!$url=$this->getImagePlan()["url"])
+			$url ='';
+
+		return [
+						'url' =>  $url,
 						'posX' => $this->getPosX(),
 						'posY' => $this->getPosY(),
 						'description' => (trim($this->getDescription())
diff --git a/tests/application/modules/admin/controllers/BibControllerTest.php b/tests/application/modules/admin/controllers/BibControllerTest.php
index 797076512f67b24240e547de61214f03290346ec..c1fe53091dc4f5a959b95244766cea92e7c4c5a8 100644
--- a/tests/application/modules/admin/controllers/BibControllerTest.php
+++ b/tests/application/modules/admin/controllers/BibControllerTest.php
@@ -528,7 +528,9 @@ class BibControllerLocalisationNewPostTest extends BibControllerTestCase {
 //			->with(ROOT_PATH . '/userfiles/photobib/localisations/bib_2_localisation_9.jpg')
 			->answers(true)
 			->whenCalled('rename')
-			->answers(true);
+			->answers(true)
+			->whenCalled('getcwd')
+			->answers('path');
 		Class_Localisation::beVolatile();
 		Class_Localisation::setFileSystem($file_system);
 
@@ -563,7 +565,10 @@ class BibControllerLocalisatonDeleteTest extends BibControllerTestCase {
 //			->with(ROOT_PATH . '/userfiles/photobib/localisations/bib_2_localisation_9.jpg')
 			->answers(true)
 			->whenCalled('unlink')
-			->answers(true);
+			->answers(true)
+			->whenCalled('getcwd')
+			->answers('path');
+;
 
 		Class_Localisation::setFileSystem($file_system);
 		$location = $this->fixture('Class_Localisation',
diff --git a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
index e95084ec7a9b225c140e793e482aaa6d08740585..aacc186593908ead404d569cf26339ab4c69e9e9 100644
--- a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
+++ b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
@@ -1388,7 +1388,7 @@ abstract class NoticeAjaxControllerLocalisationTestCase extends AbstractControll
 			->whenCalled('file_exists')
 			->answers(true)
 			->whenCalled('getimagesize')
-			->answers(['width' => 200, 'height' => 600])
+			->answers(['480','360',2,'width="480" height="600"'])
 			->whenCalled('rename')
 			->answers(true)
 			->whenCalled('getcwd')
@@ -1486,7 +1486,7 @@ class NoticeAjaxControllerWithLocalisationTest extends NoticeAjaxControllerLocal
 	/** @test */
 	public function urlShoudlBeAsExpected() {
 
-		$this->assertContains('/userfiles/photobib/plans/bib_0_plan_1.png', $this->_json->url->url);
+		$this->assertContains('/userfiles/photobib/plans/bib_0_plan_1.png', $this->_json->url);
 	}