code: def save_profile(self, **params):
          
          image = self.get_image()
          if (image is None):
              return
  
          profile = image.get('profile', None)
          if profile is None:
              # If image has no profile then create one
              profile = Settings.SettingGroup()
              image.set(profile=profile)
  
          self.logger.debug("saving to image profile: params=%s" % (
              str(params)))
          profile.set(**params)
          return profile
docs: Save the given parameters into profile settings.
  
          Parameters
          ----------
          params : dict
              Keywords and values to be saved.