changed captureWindow to use Screenshot.CaptureArea method with windows location