Coding style
Rewrote render Clear operation to be self-contained and more fail-safe