Update image in modal, won't update

I have an image in a modal and the src comes from a text-input.
When I update the image using another modal which saves the image as the same file name as the first one, it will not update the image in the original modal.

However if I delete the g out of the .jpg in the text input and then retype it will update the image.
Is there a way to get this to do it automatically. ?
I have tried added model update, but this does nothing.

Community Page
Last updated: