Clean up code to use wtu.checkCanvas*()
Merge pull request #718 from zhenyao/rendering

Clean up code to use wtu.checkCanvas*()