2 differents path maybe
I think the question is:
is there a way to use a certain path to upload the picture, a relative one, and to use an absolute one to insert in the code. This way it could work, as the absolute one doesn't work to upload the picture.