sets img src to relative path