allow use pillow for thumbnail generation