MVE: Review and cleanup of undistortion code