PreRendering processing changes to use the cancellationtokensource to cancel effect rendering when requested.