code: def setFilename(self, filename):
          
          ## Loop through image paths to find the image
          found = False
          for image_path in sys.path + [Settings.BundlePath, os.getcwd()] + Settings.ImagePaths:
              full_path = os.path.join(image_path, filename)
              if os.path.exists(full_path):
                  # Image file not found
                  found = True
                  break
          ## Check if path is valid
          if not found:
              self.path = filename
              print(Settings.ImagePaths)
              raise ImageMissing(ImageMissingEvent(pattern=self, event_type="IMAGEMISSING"))
          self.path = full_path
          self.image = cv2.imread(self.path)
          return self
docs: Set the filename of the pattern's image (and load it)