ctx = function (o) {
    var defaultOptions = { width:500, height:500, enableMirroring : false}, options;

    //keep support for this way of calling C2S: new C2S(width,height)
    if (arguments.length > 1) {