How do I display the primary hotel image on my page

This applies to hotel detail/overivew ,maps and prices pages

Paste the following into your template page
                <!--{* loop through the images and find the primary one *}-->
                <!--{foreach key=cid item=current_image from=$images_image}-->
                  <!--{if $current_image.primary == Y}-->
                  <!--{assign var="image_primary" value="Y"}-->
                  <img src="http:<!--{$current_image.url}-->" name="photo" class="photo" width="200" />
                  <!--{/if}-->
                  <!--{/foreach}--> 
                 
                  <!--{*
                  The next line check's if wct didn't set a primary image
                  if not then use first image
                  *}-->
                  <!--{if $image_primary != Y AND $images_image[0]}-->
                  <img src="http:<!--{$images_image[0].url}-->" name="photo" class="photo" width="200" />
                  <!--{/if}-->