Resize the image before sending it to survey-web