@henrique I think the “right” thing to do is offer to update the link in the note that moved to point to the image in the original folder.
e.g. if it was
root
| \______ foo (dir)
| |____note1.md
bar (dir) |____note2.md
|____img1.png
before, in both note1 and note2, the referenced image could be as ![[img1.png]]
after moving note2.md to the bar folder, the link should be
[[../foo/img1.png]]
Another option would be a prompt that says “this note references local files that are shared by other notes. Do you want to duplicate the linked files, or update the references so they point to their original location?”