Umm, Dirk, I don't think this is the answer you're looking for, but the "how" is the method that can derive the algorithm they used, which I wouldn't expect to be very difficult, considering that their purpose isn't to keep it secret from anyone.
I suspect that if you make a spreadsheet and throw in a bunch of data of film number, image number, and URL, the pattern should become obvious fairly quickly.
Of course, I expect that you're asking for someone who has already done that to provide the information to you, but - as for myself - I'm too lazy to do it - sorry!