I think wget might be able to do that. Not sure, check it out.
I know it would be easy to write a PHP script to do that, in fact I just wrote one somewhat like that but instead you give it a site's image dir and it grabs all the pictures out of it. Was quite easy to write. 😉 Just gotta make sure to turn off the execution time limit thingy on PHP.