add option to only emit the tikzpicture environment

I want to include the emited pgfcode directly into my document