code: def send_image(self, url, name, **imageinfo):
          
          return self.client.api.send_content(
              self.room_id, url, name, "m.image",
              extra_information=imageinfo
          )
docs: Send a pre-uploaded image to the room.
  
          See http://matrix.org/docs/spec/r0.0.1/client_server.html#m-image
          for imageinfo
  
          Args:
              url (str): The mxc url of the image.
              name (str): The filename of the image.
              imageinfo (): Extra information about the image.