function registerShape(name, ShapeClass) {
    _customShapeMap[name] = ShapeClass;
}
Sub pixel optimize rect for canvas

@param {Object} param
@param {Object} [param.shape]
@param {number} [param.shape.x]
@param {number} [param.shape.y]
@param {number} [param.shape.width]
@param {number} [param.shape.height]
@param {Object} [param.style]
@param {number} [param.style.lineWidth]
@return {Object} Modified param