Capture screenshots using DirectX