fix photo upload url