fix img tag validation issue