Use `tagged` to avoid undeclared tags error
Fix image loading check for IE
Force conditions to return an array of matches