Put configuration options for window so that the rendering is controlled on initialization of window. Improved clip function to only clip before the borders. Added a border radius class for initializing separate border radii for each corner.