Cleaning code. Now the image attribute is added exactly where you double click on the map.