Hey there,
If that's the case, I must apologise for getting it wrong, however I have added the code to my header.php file, and it doesn't seem to have done anything. The ads are still showing up on every page of the website, including when the image.php file is being used.
Here is the code Im using...
<?php if (!is_page_template('image.php')) {?>
<div style="background:#F4F9F9; border:solid; border-width:1px; border-color:#A5A5A5;text-align:center;padding:10px; margin-bottom:15px;-moz-border-radius-:3px; -webkit-border-radius: 3px;">
<script type="text/javascript"><!--
google_ad_client = "pub-9907904751335716";
/* 728x90, created 7/4/10 */
google_ad_slot = "3185972388";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<?php }?>
Have I done anything wrong? Just incase you need to look at the site in question, its http://www.purebeyonce.com
You can go to this link, which will show you the image.php template in-use. As you can see, the leaderboard adsense block is still displayed along the top of the page, despite the if statement being placed in the header (inside the wrapper div).
http://purebeyonce.com/beyonce-knowles-dangerously-in-love-photoshoot/beyonce-knowles-01-580x796