Fix drawing issue in gr.ImageEditor
https://www.notion.so/qim-dtu/Annotation-tool-is-not-working-35111057be3e4af7b106202e472b878f?pvs=4
It is an issue in gradio, where the internal frame does not update.
Can be fixed by setting the image as a dictionary.
A pull request have been made to gradio.
https://github.com/gradio-app/gradio/pull/7959