Merged thumbnails_download_preview branch.