added thumbnail generator and thumbnails