Generate thumbnails from html