Added ability to configure the screen capture method