toolkit for createjs ratio convert