fix some issues with image path