you wont be able to create one image and loop it for each image field, you will need to create all 10 images on the page, but you can put an if statement around each one so that it will only actually display on the page if the column is not empty. for example:
<?php if($row_recordsetName['imagecol1'] != "") { ?>
<img src="path/to/images/<?php echo $row_recordsetName['imagecol1']; ?>" />
<?php } ?>
<?php if($row_recordsetName['imagecol2'] != "") { ?>
<img src="path/to/images/<?php echo $row_recordsetName['imagecol2']; ?>" />
<?php } ?>
etc.....