You can make any usual HTML tag to have server functionality by adding into the tag runat="server" and giving it a name with id="MyName"
In this case I'd suggest you used a div with server functionality...
<div runat="server" id="ImagesDiv"></div>
So then in code-behind, you can just have those images into a DataTable perhaps, "dtImages"
string htmlForImages = String.Empty;
for (int i = 0; i < dtImages.rows.Count; i++)
htmlForImages += "<img src="" + dtImages.Rows[i][0].ToString() + "" />";
ImagesDiv.InnerHtml = htmlForImages;
This solution works for every case in which you can't tell exactly how many images there... there could be 1, 2, 3... 100 and it would still work.
Unless you had a fixed amount of images, then you could use asp.net img tag.