thanm's replacement code is formatted like this:
thanm r file.anm directory/file.png newfile.png
You can use thanm l file.anm to find the directory of the files in the .anm, but since this usually dumps a bunch of text in the console, I find it easier to just use thanm x file.anm and work with the directories from there. As an example, IN's character portrait files are set up like data/face/[st0* / character name]/face_*_*.png; I haven't looked at the Ten Desires files in a while, though, so I can't help you there.