fix invalid photo path