Sample
Need to change the CSS. I don't like the style.
The CSS is also messing with the V align. Will create some new div styles in a bit. Just messing with a table to see if the code works.
Make sure to use as many different aspect ratios as you can. Keep the number of images per page down to five or seven. (Odd numbers should look better.)