Switch to relative image paths in template