Change the format of photo data sent on upload