make gen_thumbnails reentrant, the GUI can call it from different threads
[booh] / lib /
drwxr-xr-x   ..
drwxr-xr-x - booh