Now sending the image as a jpeg actually works. A tempfile for the image is created on the server side