fixed image capturing for our test.