On Wp Forums, I found a code that shows categories with images and it works very well. But I couldn't figure out how to highlight current category on category.php and single.php
Here is the code that i'm using
$cats = get_categories('hide_empty=0&child_of=2&orderby=count&number=99&order=asc');
foreach ((array)$cats as $cat) {
$catdesc = $cat->category_description;
echo '<a href="' . get_category_link($cat) . '" title="'. strip_tags($catdesc) .'">
<li>
<img src="' . get_home_url () . '/wp-content/uploads/' . $cat->slug. '.jpg" alt="' . $cat->cat_name . '" class="front-img" />
</li>
</a>';
}