anchor.diff:                          komenuka.publishTategakiEvents($drawText, $textSize);
                       });
                       $undoBtn.click(function() {
  -                        komenuka.init(new createjs.Bitmap(img));
                           komenuka.undo();
                       });
                   } else {
  
positive.code:                     },
                      "undo": function() {
                          if (jsonObjHistory.length > 0) {
                              jsonObjHistory.pop();
                              drawFromJson(jsonObjHistory[jsonObjHistory.length - 1]);
                          }
  
negative.code:                     }
                  }
  
                  function clear() {
                      stage.removeAllChildren();
                      stage.addChild(image);
                      shape = new createjs.Shape();
                      stage.addChild(shape);
                  }
  
                  return {
                      "init": function(bmp) {
                          image = bmp;
                          stage.removeAllEventListeners();
                          stage.canvas.width = bmp.image.width;
                          stage.canvas.height = bmp.image.height;
                          clear();
                          overlay = new createjs.Shape();
                          overlay.alpha = 0.7;
                          stage.addChild(overlay);
                          stage.update();
                          jsonObj = {};
  