Fix double call of methods draw in capture object. (Bug 5167)