Fixed syntax errors in canvaswrapper and commented out the
code using the imgData-properties (as these does not exist in the canvas API).