fix candidates
fix elements selection

always include images if they have a ‘sizes’ attribute, even when
‘srcset’ is supported by browser
Correct indentation
typo
merge conflicts from PR #197
fix tests with tweaks to support