Try this following method into Magento2. Follow the given solution:

Put your image on Your Magento 2 Path:

/app/design/frontend/< Vendor >/< theme >/web/images

Use this code to call the image in phtml file:

<img src='<?php echo $this->getViewFileUrl('Company_Module::images/image-icon.png'); ?>' alt="image-icon" width="30" height="25">