Remove unnecessary image path