renderWindow: added renderWindow class which encapsulates renderBuffer