Allow thumbnail extraction configuration
Fix error message
Merge pull request #552 from romainneutron/thumbnail-generation

[3.8] Thumbnail generation