How to Filter image with its name and different extention

Hello,

Please how could I select an image from its name and allows multiple extentions. I already saw it somewhere (I think in the forum) but impossible to find the post.

<?php if($image = $page->image('icon.svg or png or jpg')): ?>
<img class="icon" src="<?php echo $image->url() ?>" alt="">
<?php endif ?>

Thank you.

<?php if($image = $page->images()->findBy('name', 'icon')): ?>
<img class="icon" src="<?php echo $image->url() ?>" alt="">
<?php endif ?>

Again Thank you for your help.