From your list of images (perhaps from a server-side folder [perhaps with scandir() ] and use your list to populate php-generated images (in a loop)
foreach($imgFile as $img)
ECHO "<img src="$img">";</img>
You will also need to dynamically create the location coordinate styles and appropriate size attributes [ height and/or width ]. If you wish to seem a bit more clever, you can get the screen dimensions from the client and either size the images or modify the count/row based upon the value.