Changes ImageTag to recognize void elements correctly for self-closing.