fix bug with element is not attached to the page document
relative path to img