change img to relative path