Example
$form = new Form('plugins-image-picker-form-1', 'vertical');
$img_path = 'https://www.phpformbuilder.pro/templates/assets/img/random-images/animals/';
$form->addOption('animal', 'Animal 1', '', '', 'data-img-src=' . $img_path . 'animals-1.jpg, data-img-alt=Animal 1');
$form->addOption('animal', 'Animal 2', '', '', 'data-img-src=' . $img_path . 'animals-2.jpg, data-img-alt=Animal 2');
$form->addOption('animal', 'Animal 4', '', '', 'data-img-src=' . $img_path . 'animals-4.jpg, data-img-alt=Animal 4');
$form->addSelect('animal', 'Choose your preferred animal', 'required');
$form->addPlugin('image-picker', 'select');
<div class="bs5-form-stacked-element mb-3">
<label for="animal" class="form-label">
Choose your preferred animal <sup class="text-danger">* </sup>
</label>
<select id="animal" name="animal" required class="form-select">
<option value="Animal 1" data-img-src="https://www.phpformbuilder.pro/templates/assets/img/random-images/animals/animals-1.jpg" data-img-alt="Animal 1"></option>
<option value="Animal 2" data-img-src="https://www.phpformbuilder.pro/templates/assets/img/random-images/animals/animals-2.jpg" data-img-alt="Animal 2"></option>
<option value="Animal 3" data-img-src="https://www.phpformbuilder.pro/templates/assets/img/random-images/animals/animals-3.jpg" data-img-alt="Animal 3"></option>
</select>
</div>