Submit generated image directly to POST call instead of storing on DOM intermediately and using serialize()