How to edit image field output from template
You need to install the Image URL Formatter module

Then in your view, click on your image field and select url as the formatter, so it prints the url rather than the image. 



Option A) In the rewrite results field, use the token for your image field. 

Example: &lt;img src="[field_image]" class="yay-we-did-it"&gt;  

Option B) if you want to use the .tpl.php file, put this inside it.

&lt;img src='&lt;?php print $fields["field_image"]-&gt;content; ?&gt;' class='yay-we-did-it'&gt;