fix an image path and make image paths lowercase for bars