fix path resolution for stylesheet and images