fix the photo importing problem.