make some ugly effort to display thumbnails in html mode