fix photo upload