successfully sending correctly rotated pictures to the server