Display images instead of nodes titles in Drupal 7 Normaly in Drupal 7 we have (node.tpl.php):

  &lt;?php print render($title_prefix); ?&gt;
  &lt;?php if (!$page): ?&gt;
  &lt;h2&lt;?php print $title_attributes; ?&gt;&gt;&lt;a href="&lt;?php print $node_url; ?&gt;"&gt;&lt;?php print $title; ?&gt;&lt;/a&gt;&lt;/h2&gt;
  &lt;?php endif; ?&gt;
  &lt;?php print render($title_suffix); ?&gt;


It is taking node_url and putting it on a Title in every Node.

I do have 5 nodes (pages) displayed:


First 
Second
Third
etc


I have created images First.gif, Second.gif and I want to load that images instead of Title.

I did check various implementation, but didn't find any resolution for me.

[Update] I did try to edit template.php file and to add functions for replacing title with image-if images exists.
I need this in Drupal 7 - please see here - http://drupal.org/node/221854

Is there any help? Thanks
For non-coders: the views slideshow module (or something similar) could easily solve this problem without requiring custom code to maintain.
From http://drupal.org/project/views_slideshow:

Views Slideshow can be used to create a slideshow of any content (not just images) that can appear in a View. Powered by jQuery, it is heavily customizable: you may choose slideshow settings for each View you create.
Potential uses
News item slideshow (such as the title, image and teaser of the last 5 news articles submitted)
The Last X number of X submitted (images, videos, blog entries, forum posts, comments, testimonials, etc.).
Rotate any image, based on any filters you can apply in views.
Hottest new products for any ecommerce drupal site.
Rotate contact links, share links, etc.
Heck, you could rotate entire nodes, categories, image galleries, etc. I wouldn't suggest it, but you have that power.
Its also a great space saver. Places where you had multiple images or multiple items such as RSS feeds or category listings can now be presented in a slideshow.
The possibilities are really endless, as the more ways you can think of to categorize and add to views, the more you can rotate.