code: function _saveCanvas(ctx, data) {
  	var transforms;
  	ctx.save();
  	transforms = _cloneTransforms(data.transforms);
  	data.savedTransforms.push(transforms);
  }
docs: Save canvas context and update transformation stack