How to call mediaId for image from library in twig template?

Xibo version: 1.8.9
I need to fetch and show image in twig template which is already uploaded to Library directory, the way it works in php as follows, what is twig way? I am working on custom Module.

$this->getResourceUrl('custom/image01.png');