Modify tpl file to print the path to the image instead of the image itself?
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'];