code: def get_img_tag(self, title='', alt_text='', **kwargs):
          
  
          try:
              style = []
  
              for key in ('img_style', 'style'):
                  if key in kwargs:
                      if isinstance(kwargs[key], (list, tuple, set)):
                          style += list(kwargs[key])
                      else:
                          style.append(kwargs[key])
  
              if 'shape' in kwargs:
                  shape = self._get_shape_style(**kwargs)
                  if shape:
                      style.append("shape-outside: url('{}')".format(shape))
  
              attrs = {
                  'alt': alt_text,
                  'title': title,
                  **self.get_img_attrs(style, **kwargs)
              }
  
              return flask.Markup(
                  self._wrap_link_target(
                      kwargs,
                      utils.make_tag(
                          'img', attrs, start_end=kwargs.get('xhtml')),
                      title))
          except FileNotFoundError as error:
              text = '<span class="error">Image not found: <code>{}</code>'.format(
                  html.escape(error.filename))
              if ' ' in error.filename:
                  text += ' (Did you forget a <code>|</code>?)'
              text += '</span>'
              return flask.Markup(text)
docs: Build a <img> tag for the image with the specified options.
  
          Returns: an HTML fragment.