Implemented logic to send canvases via Base64 encoded strings in POST request. The server then decodes these images and overlays them on top of the background (template) image to create a final image which looks identical to the preview.