make image path relative, regenerate PDF