A new web worker is made every time scan is called but the old workers are never closed or terminated.
We probably want to call terminate as documented here:
https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate
The following screenshot is from Google Chrome Developer Tools "Source" tab after scanning multiple images with nude.js:

Related to #1
A new web worker is made every time scan is called but the old workers are never closed or terminated.
We probably want to call terminate as documented here:
https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate
The following screenshot is from Google Chrome Developer Tools "Source" tab after scanning multiple images with nude.js:

Related to #1