code: def write_to_path(self,path,suffix='',format='png',overwrite=False):
          
          if os.path.exists(path) and overwrite is False: raise ValueError("Error: use ovewrite=True to overwrite images")
          if not os.path.exists(path): os.makedirs(path)
          for i,r in self.iterrows():
              spath = os.path.join(path,r['project_name'],r['sample_name'])
              if not os.path.exists(spath): os.makedirs(spath)
              if suffix == '':
                  fname = os.path.join(spath,r['frame_name']+'.'+format)
              else: fname = os.path.join(spath,r['frame_name']+'_'+suffix+'.'+format)
              imageio.imwrite(fname, r['image'],format=format)
docs: Output the data the dataframe's 'image' column to a directory structured by project->sample and named by frame
  
          Args:
              path (str): Where to write the directory of images
              suffix (str): for labeling the imaages you write
              format (str): default 'png' format to write the file
              overwrite (bool): default False. if true can overwrite files in the path
  
          Modifies:
              Creates path folder if necessary and writes images to path