fix local image path resolution.