generate img tag in template
js sorting of table rows. OK for smaller tables, for bigger ones, maybe sort serverside
show triple counts