CocoonJS compatibility fix. Screencanvas cleared before painting.