code: def _save_to(self, im, path, format=None):
          
          format = format or im.format
          if not format:
              _, format = splitext(path)
              format = format[1:]
          im.format = format.lower()
          im.save(filename=path)
docs: Save the image for testing.