add option to only emit the tikzpicture environment