convert image paths