generate thumbnails from html file