Now capture image works correctly.