Use regexp for folder in ThumbnailWriter