Thank you Chandra for help, it works.
One more question to make it more elegant. We have a hundreds of folders each with one image. How to make to read all the folders (the names of all begins 000) automatically in the variable "sourcefolders"?
Thank you, Ludek
