Quill image resize problem

I have implemented collaboration using yjs and y-quill plugin but image resize plugins causes the images to get duplicated. I have posted a video in y-quill repository to show . If anyone has any pointers it will be helpful. Loom | Free Screen & Video Recording Software text and other elements sync fine