fixing preview image paths