Are you looking for something like this? https://codesandbox.io/s/react-image-pan-zoom-rotate-forked-xb66pb?file=/src/index.tsx
If yes then you can give a go at making a Pluggable Widget.
First bootstrap a new pluggable widget as per the documentation. Then in the widgets main tsx file use the same React Component as mentioned in the above sandbox. Of course install the needed dependencies.
As you can see in the sandbox link, the component can take image as a URL or the base64 representation of the image. I think both can be managed by the wrapping Entity which encloses the Widget.
Let me know if i have put you in the right path. If not we can perhaps connect directly (from any social handles)