Modify tpl file to print the path to the image instead of the image itself? I need to change this tpl file which generate images for a image field to print  the path to image instead of the image itself.

This code print out the images. It works fine

&lt;div class="&lt;?php print $classes; ?&gt; clearfix"&lt;?php print $attributes; ?&gt;&gt;
  &lt;?php if (!$label_hidden) : ?&gt;
    &lt;div class="field-label"&lt;?php print $title_attributes; ?&gt;&gt;&lt;?php print $label ?&gt;:&amp;nbsp;&lt;/div&gt;
  &lt;?php endif; ?&gt;
  &lt;div class="field-items"&lt;?php print $content_attributes; ?&gt;&gt;
    &lt;?php foreach ($items as $delta =&gt; $item) : ?&gt;
      &lt;span class="&lt;?php print $delta % 2 ? 'odd' : 'even'; ?&gt;"&gt;&lt;?php print render($item); ?&gt;&lt;/span&gt;
    &lt;?php endforeach; ?&gt;
  &lt;/div&gt;
&lt;/div&gt;


I need to print just the path to the image (not the image). 
I tried with this code but I get a error message related to line 58. (see the error message below)

&lt;div class="&lt;?php print $classes; ?&gt; clearfix"&lt;?php print $attributes; ?&gt;&gt;
  &lt;?php if (!$label_hidden) : ?&gt;
    &lt;div class="field-label"&lt;?php print $title_attributes; ?&gt;&gt;&lt;?php print $label ?&gt;:&amp;nbsp;&lt;/div&gt;
  &lt;?php endif; ?&gt;
  &lt;div class="field-items"&lt;?php print $content_attributes; ?&gt;&gt;
    &lt;?php foreach ($items as $delta =&gt; $item) : ?&gt;
      &lt;?php dpm($item); // I uploaded a capture of this dpm

          echo $item['#item']-&gt;uri; // THIS IS LINE 58

     ?&gt;
    &lt;?php endforeach; ?&gt;
  &lt;/div&gt;
&lt;/div&gt;


Error:


  Notice: Trying to get property of non-object en include() (line 58 de
  /Applications/MAMP/htdocs/lembassade.com/sites/all/themes/omega_subtheme_2/templates/field--field-im-genes-del-fondo.tpl.php).
From the looks of your devel output (and the error message), each $item is an array, not an object.

You should be able to fix it by changing the line inside the loop to:

echo $item['#item']['uri'];