Added undistort code to the capturer and the engine