Added support for thumbnails from the S3.

Added support for thumbnails from the S3.

The thumbnails are saved in the local directory.