add file protocol to image path