* Convert boolean masks to uint8 images within `imshow` to ensure OpenCV compatibility.
* Internal adaptations to fix deprecated (NumPy) and changed (PIL) library usage.
* CI updates to [PyPI's trusted publishing](https://docs.pypi.org/trusted-publishers/).
* Code clean up (added type hints, docstrings, ...).