Fixed issue with spaces in thumbnail names