I have this line of code "var cropped_image = canvas.toDataURL();"
That is turning the canvas image into a string like . data:image/png;base64,iVBORw0KGgoAAAANS