renamed extraTikzpictureCode to extraCode and insert content at beginning of file