hack to avoid circular import when import canny