Fix photo upload