Hmm, I'm pretty sure I fixed the portrait download a while ago, guess I didn't share it. Your guess is right if i recall correctly the url formatting changed a bit.
Once again, best thing to do is to take a backup of the original script just in case.
Enjoy.