I threw that all out lol.  
Prerequisites:  you can have only images in the subfolders (the program doesn't include a file-type regex), and I left it only one level deep.  If you need it to be recursive (folders within subfolders, etc.), it'll need a bit more code.
Here you go: