Image Occlusion Enhanced constantly closing

Does anyone know what could be the problem here. I have tried all of the steps but it doesn’t seem to work.

Everytime I try to open an image on image occlusion advanced the app sends me back tot he home - screen of my mac.

When I return to the anki page, sometimes the picture is there and it lets me continue to make the card as normal. But as I click “Hide all guess one” to make the card the following text appears:

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.60 (76d88073) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-11.7-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-03-09 11:50:44
Add-ons possibly involved: ⁨Image Occlusion Enhanced⁩

Caught exception:
Traceback (most recent call last):
File “aqt.webview”, line 604, in handler
File “/Users/lucasbromley/Library/Application Support/Anki2/addons21/1374772155/”, line 324, in
lambda val, choice=choice, close=close: self._onAddNotesButton(
File “/Users/lucasbromley/Library/Application Support/Anki2/addons21/1374772155/”, line 343, in _onAddNotesButton
r = gen.generateNotes()
File “/Users/lucasbromley/Library/Application Support/Anki2/addons21/1374772155/”, line 99, in generateNotes
(svg_node, layer_node) = self._getMnodesAndSetIds()
File “/Users/lucasbromley/Library/Application Support/Anki2/addons21/1374772155/”, line 226, in _getMnodesAndSetIds
mask_doc = minidom.parseString(self.new_svg.encode(“utf-8”))
AttributeError: ‘NoneType’ object has no attribute ‘encode’