docstr: Image to Image inpainting + masking
  
  Args:
      image_url: The image url
      prompt: The given text
      height (int, optional): Height of the image. Defaults to 1024.
      width (int, optional): Width of the image. Defaults to 1024.
      mask_image_url (string, optional): The mask image url for masking. Defaults to None.
  
  Returns:
      The local saved paths of the generated images
docstr_tok: ["Image","to","Image","inpainting","+","masking","Args",":","image_url",":","The","image","url","prompt",":","The","given","text","height","(","int",",","optional",")",":","Height","of","the","image",".","Defaults","to","1024.","width","(","int",",","optional",")",":","Width","of","the","image",".","Defaults","to","1024.","mask_image_url","(","string",",","optional",")",":","The","mask","image","url","for","masking",".","Defaults","to","None",".","Returns",":","The","local","saved","paths","of","the","generated","images"]
code: def image_to_image(
      self,
      image_url,
      prompt=None,
      height=1024,
      width=1024,
      mask_image_url=None,
  ):
      """Image to Image inpainting + masking
  
      Args:
          image_url: The image url
          prompt: The given text
          height (int, optional): Height of the image. Defaults to 1024.
          width (int, optional): Width of the image. Defaults to 1024.
          mask_image_url (string, optional): The mask image url for masking. Defaults to None.
  
      Returns:
          The local saved paths of the generated images
      """
      img = self._read_image_url(image_url)
      mask_img = (
          None
          if (mask_image_url is None)
          else self._read_image_url(mask_image_url)
      )
      if prompt is None:
          prompt = ""
      answers = self.stability_api.generate(
          prompt=prompt,
          init_image=img,
          mask_image=mask_img,
          width=width,
          height=height,
      )
  
      saved_images = self._process_artifacts(answers)
  
      return saved_images
  
file_path: mindsdb/mindsdb/integrations/handlers/stabilityai_handler/stabilityai.py
imports: from stability_sdk import client
  from stability_sdk.client import generation
  from PIL import Image
  import io
  import requests
label_desc: Use image node_id 8 for calling the StabilityAPIClient obj's underlying member method code with example usage: obj.image_to_image(image_url, prompt, height, width, mask_image_url) and returns: saved_images