Skip intermediate DOM storage of generated images

We receive image data, then store it on the DOM, then reserialize it. Instead, send the generated image data directly to the $.post call.