thumbnail generation now working