Pick the best thumbnail available

See https://github.com/e-ucm/ead/pull/941