convert a tikz to image