make image paths relative