Update canvas.class.js

fix for ie8 missing width and height in bounds