In Magento 1, we can directly get the image url using Mage::getUrl() function.

But in Magento 2 there are some changes to call the images

Use this code to phtml file to get the Url

Here:

call:- Module frontname
index:- Controller name
view:- Action name

Now Refresh the page and check