initialised fabric.js and updated canvas size on with and height change.