I don't know of any currently available scripts, but you basically need to
recursively traverse the albums directory. Use patters to filter out all *.dat
files, as well as *.sized.* and *.thumb.* files and you should have nothing
but the originals. Also, ignore the .users directory.