Show category with images in homepage Magento2
<p>Show category with images in homepage Magento2</p>

<p><a href="http://ibnab.com/en/blog/magento-2/magento-2-frontend-how-to-call-category-collection-on-home-page" rel="nofollow">http://ibnab.com/en/blog/magento-2/magento-2-frontend-how-to-call-category-collection-on-home-page</a></p>

<p>This article working fine but I need to show category image.How to fetch category images also</p>

<p>I am using $category->getImageUrl();</p>

<p>but its not working</p>