fixed photo upload