Thank you very much hauptra, if I could give you more 1000 reputation I would.
PS I've only skimmed the surface of the code, I'll let you know soon how I went with it, thanks again.
edit: Ok, I'm a bit lost in your code here, sorry. I'm trying to display the correct image for frame 0, I know...