Update canvas.class.js

Added lockScaleFlip variable to scale object method