Add withWindow and withRenderer, along with destroyRenderer
Change (/=0) to (==0) - so we return True on success and False on failure