[eluser]jojo777[/eluser]
You are welcome!
About this "it better practice to generate the thumbnails on the fly, or to save them as they are uploaded?" I think is better to store the image and then generates the thumbanil. So upload the image save it with its own thumnail as they are uploaded.
Maybe there are goods alternatives but for now that worked for me very well.