fix links and images