I'm using the following code I've written with some .php- Be sure to name your file with the .php extension- It will iterate through the images in a folder, however, linking and description blocks will not be available.