Fix detection of non-IMG elements.