Added thumbnails and fixed issues with S3 storage.

Fixes #1