I fixed the bug catching wrong parentheses when finding image url.
Here is the link for the PR:
https://github.com/discourse/discourse-image-annotator/pull/53
I am also planning to add a function when hovering over the image the user can choose whether to annotate it or crop (rotate/flip) it.