added tikzDeleteIntermediate option