code: def add_image(self, im):
          
          for im_tmp in self.images:
              if im_tmp.kind == im.kind:
                  self.images.remove(im_tmp)
                  break
          self.images.append(im)
docs: Add a image to a screenshot object