Tikz code export

Added tikz code export which creates a .tex file which produces a .pdf image when compiled with e.g. pdflatex/xelatex/lualatex.