make image paths relative to index.html