So you should be able to show the first image with just regular bindings.
Then add the code:
<?php
$RecordsetName->moveNext();
?>
To move to the next image. Add the wrapping div or whatever for the sub-images and then add a repeat region for the recordset and it should all work.