Make image references more relative