code: def persist(self, path_to_file):
          
          with open(path_to_file, 'wb') as f:
              f.write(self.data)
docs: Saves the image to disk on a file
  
          :param path_to_file: path to the target file
          :type path_to_file: str
          :return: `None`