use the same thumbnail generation code for ted, xkcd, twitter, instagram, and possibly others (a proposal)