Refactoring OffScreen Canvas to a template class; updating example sketches.