def visit_image(self, node: Element) -> None:
    if (node['uri'] in self.builder.images):
        uri = self.builder.images[node['uri']]
    else:
        if self.ignore_missing_images:
            return
        uri = node['uri']
    if (uri.find('://') != (- 1)):
        return
    (name, ext) = path.splitext(uri)
    width = self.tex_image_length(node.get('width', ''))
    height = self.tex_image_length(node.get('height', ''))
    alt = self.escape_arg(node.get('alt', ''))
    filename = ('%s-figures/%s' % (self.elements['filename'][:(- 5)], name))
    self.body.append(('\n@image{%s,%s,%s,%s,%s}\n' % (filename, width, height, alt, ext[1:])))
def visit_image(self, node: Element) -> None:
    if (node['uri'] in self.builder.images):
        uri = self.builder.images[node['uri']]
    else:
        if self.ignore_missing_images:
            return
        uri = node['uri']
    if (uri.find('://') != (- 1)):
        return
    (name, ext) = path.splitext(uri)
    width = self.tex_image_length(node.get('width', ))
    height = self.tex_image_length(node.get('height', ))
    alt = self.escape_arg(node.get('alt', ))
    filename = ('%s-figures/%s' % (self.elements['filename'][:(- 5)], name))
    self.body.append(('\n@image{%s,%s,%s,%s,%s}\n' % (filename, width, height, alt, ext[1:])))