Stop setting src to the rebased src in AbstractImage

The src should always represent the value given by the user.
Solve race condition in AbstractImage.

In some cases the image was not getting rebase and applied to the dom.
Refactor setting the flag
Merge pull request #1420 from francoisfrisch/rebase-url

Stop setting src to the rebased src in AbstractImage