Figured this out, here's how I did it:
using CMS.PortalControls;
using CMS.Helpers;
using CMS.MediaLibrary;
public string Images
{
get
{
return ValidationHelper.GetString(GetValue("Images"), "");
}
}
protected void Page_Load(object sender, EventArgs e)
{
MediaLibraryInfo folderInfo = MediaLibraryInfoProvider.GetMediaLibraryInfo(Images, CurrentSite.SiteName);
CMS.DataEngine.InfoObjectCollection folder = folderInfo.Children.FirstOrDefault();
foreach(var image in folder)
{
if (!string.IsNullOrEmpty(image.GetProperty("Guid").ToString()))
{
this.imagesHTML.Text += string.Format("<img src='/{0}/media/{1}/{2}' />", CurrentSite.SiteName, folderInfo.LibraryFolder.ToString(), image.GetProperty("FilePath").ToString());
}
}
}
Might not be the ideal way but there is nothing in the documentation so hopefully this helps someone else.