code: def update(self, newinfo):
          '''update the image'''
          self.imgstr = newinfo.imgstr
          self.width = newinfo.width
          self.height = newinfo.height
          if self.imgpanel is not None:
              self.imgpanel.set_image(self.img()f update(self, newinfo):
          '''update the image'''
          self.imgstr = newinfo.imgstr
          self.width = newinfo.width
          self.height = newinfo.height
          if self.imgpanel is not None:
              self.imgpanel.set_image(self.img())
docs: update the image