Added support for cancel rendering