added switch for transforming object detections to world frame