fixing paths and images