Added thumbnails functionality