code: def create(self,image_path, size=1024, sudo=False):
      '''create will create a a new image
  
          Parameters
          ==========
          image_path: full path to image
          size: image sizein MiB, default is 1024MiB
          filesystem: supported file systems ext3/ext4 (ext[2/3]: default ext3
  
      '''        
      from spython.utils import check_install
      check_install()
  
  
      cmd = self.init_command('image.create')
      cmd = cmd + ['--size', str(size), image_path ]
  
      output = self.run_command(cmd,sudo=sudo)
      self.println(output)
  
      if not os.path.exists(image_path):
          bot.exit("Could not create image %s" %image_path)
  
      return image_patf create(self,image_path, size=1024, sudo=False):
      '''create will create a a new image
  
          Parameters
          ==========
          image_path: full path to image
          size: image sizein MiB, default is 1024MiB
          filesystem: supported file systems ext3/ext4 (ext[2/3]: default ext3
  
      '''        
      from spython.utils import check_install
      check_install()
  
  
      cmd = self.init_command('image.create')
      cmd = cmd + ['--size', str(size), image_path ]
  
      output = self.run_command(cmd,sudo=sudo)
      self.println(output)
  
      if not os.path.exists(image_path):
          bot.exit("Could not create image %s" %image_path)
  
      return image_path
docs: create will create a a new image
  
          Parameters
          ==========
          image_path: full path to image
          size: image sizein MiB, default is 1024MiB
          filesystem: supported file systems ext3/ext4 (ext[2/3]: default ext3