Updated to branch 'thumbnails'. Added vertical mode for thumbnails