Lost img selector in nested selectors. Fixes #1226