fix path of photo