Change image path to a relative one