I dont follow your question.
you can use a recordset to return the image names, and use the recordset repeat region to loop through the records.
in the image source, use the image filename column:
<img src="image/path/<?php echo $row_recordsetName['columnName']; ?>" />