I have a script that does it, your server just needs to support PHP and you have to know the rules that my script goes by, I can give it to you if you'd like though.
You can see an example at
http://www.team358.org/photos/images_build.php
If you want to make your own (since your site uses ASP apparantly) - I can just give you the concept of how I did mine.