Group thumbs by tag (only show each thumb once)

This implements the new Tag sorting layout in the Thumbnail Figure script (see https://github.com/openmicroscopy/openmicroscopy/pull/1002) and should be tested as part of that PR.

Also confirm that the script still works in Insight, when choosing the same tags in the same order as web.