By default, the category_bit.html template displays a folder icon next to categories. It is possible to also display a thumbnail of an image selected at random from that category.
In the category_bit.html template that ships with the downloaded distribution of 4images, there is the following:
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />
<!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file} -->
</td>
<td> <a href="{cat_url}" class="maincat">{cat_name}</a> ({num_images})
{if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new} </td>
</tr>
</table>
As you can see above, there is already HTML that can display a random category image thumbnail. It is simply commented out. To activate the thumbnail, uncomment the HTML. In this example the folder icon HTML is deleted in favor of the image thumbnail.
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}
</td>
<td> <a href="{cat_url}" class="maincat">{cat_name}</a> ({num_images})
{if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new} </td>
</tr>
</table>
Lastly, this feature is enabled by default, but if you previously edited includes/constants.php, check to ensure that the following line is present in that file:
define('SHOW_RANDOM_CAT_IMAGE', 1);