Display the contents of a canvas window in the library fabric.js happens with the function
var dataURL = canvas.toDataURL();
This function displays only the objects without the background set by the function setOverlayImage
How to get images from the front background. Ie a full copy of window canvas as an image.