yii2 image model code example
Example 1: yii2 img src
<?= Html::img('@web/any_folder_name/bg1.jpg', ['alt'=>'some', 'class'=>'thing']);?>
Example 2: yii2 img src
<?php echo Html::img('@web/img/icon.png', ['class' => 'pull-left img-responsive']); ?>