refactored photo upload; correct http body encoding