Added parameter not to capture the window's shadow