How to display category images in Magento static cms page

Follow the code which show images of sub category in static cms page.


$_categories=$this->getCurrentChildCategories() ?>

<?php if($_categories->count()): ?>
<ul class="category-links">
    <?php foreach ($_categories as $_category): ?>
        <?php if($_category->getIsActive()):

             $layer = Mage::getSingleton('catalog/layer');
             //$_imageUrl = $this->getCurrentCategory()->getImageUrl();

        <li class="<?php echo $this->htmlEscape($_category->getUrlKey()) ?>">
            <?php if($_imageUrl = $this->getCurrentCategory()->getImageUrl()){?>
            <img src="<?php echo $_imageUrl; ?>" alt="<?php echo $this->htmlEscape($_category->getName()) ?>" />
            <? } else {?>
            <img src="<?php echo $this->getSkinUrl('images/add-01.gif')?>" alt="<?php echo $this->getCurrentCategory()->getName();?>">
            <? } ?>
           <a href="<?php echo $this->getCategoryUrl($_category) ?>">
              <?php echo $this->htmlEscape($_category->getName()) ?>
        <?php endif; ?>
    <?php endforeach ?>
<? endif; ?>

Nikunj K

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.