I'm currently developing an [LFSR drawing library](https://github.com/kelalaka153/LFSR-Automatic-Draw) that the latex is output from Python code. One main issue that has been left is the border.

```
\documentclass[convert={density=300,size=1080x800,outext=.png},tikz, border={15mm 15mm 15mm 15mm}]{standalone}
\usepackage{xcolor}
\usetikzlibrary{arrows.meta,backgrounds}
\tikzset{{white background/.style={{show background rectangle,tight background,background rectangle/.style={{fill=white}} }} }}

\begin{document}
\begin{tikzpicture}[white background]

%node 5
    \draw node[draw, fill={{rgb:black,1;white,5}}, minimum size=4cm,line width=0.1cm,font=\fontsize{100}{100}\selectfont] at (25, 20) {};
    \draw [line width=0.1cm](25,22.0) -- (25,24.0);
    \draw [line width=0.12cm] (25,25.0) circle (1);
    \draw [line width=0.12cm](25,24.0) -- (25,26.0);
    \draw [line width=0.12cm](24,25.0) -- (26,25.0);
    \draw [arrows={-Triangle[angle=90:0.5cm,black,fill=black,line width=0.1cm]}](26,25.0) -- (25.9999,25.0);
%node 4
    \draw node[draw, fill={{rgb:black,1;white,5}}, minimum size=4cm,line width=0.1cm,font=\fontsize{100}{100}\selectfont] at (29, 20) {};
%node 3
    \draw node[draw, fill={{rgb:black,1;white,5}}, minimum size=4cm,line width=0.1cm,font=\fontsize{100}{100}\selectfont] at (33, 20) {};
%node 2
    \draw node[draw, fill={{rgb:black,1;white,5}}, minimum size=4cm,line width=0.1cm,font=\fontsize{100}{100}\selectfont] at (37, 20) {};
    \draw [line width=0.1cm](37,22.0) -- (37,24.0);
    \draw [line width=0.12cm] (37,25.0) circle (1);
    \draw [line width=0.12cm](37,24.0) -- (37,26.0);
    \draw [line width=0.12cm](36,25.0) -- (38,25.0);
    \draw [arrows={-Triangle[angle=90:0.5cm,black,fill=black,line width=0.1cm]}](38,25.0) -- (37.9999,25.0);
%node 1
    \draw node[draw, fill={{rgb:black,1;white,5}}, minimum size=4cm,line width=0.1cm,font=\fontsize{100}{100}\selectfont] at (41, 20) {};
%node 0
    \draw node[draw, fill={{rgb:black,1;white,5}}, minimum size=4cm,line width=0.1cm,font=\fontsize{100}{100}\selectfont] at (45, 20) {};
    \draw [line width=0.1cm](45,22.0) -- (45,25.0);
\draw[->,line width=0.1cm,arrows={-Triangle[angle=90:0.5cm,black,fill=black,line width=0.1cm]}] (45,25.0) -- (17,25.0) -- (17,20) -- (23.0,20);
\draw[->,line width=0.1cm,arrows={-Triangle[angle=90:0.5cm,black,fill=black,line width=0.1cm]},font=\fontsize{100}{100}\selectfont] (47.0,20) -- (53,20) node[midway,above]{};

\end{tikzpicture}
\end{document}

```

And the output PNG is

[![enter image description here](https://i.stack.imgur.com/wwAR8.png)](https://i.stack.imgur.com/wwAR8.png)

The border parameter doesn't work, or at least I don't know how to work it correctly. I've seen a problem and [the solution](https://tex.stackexchange.com/q/375128/62865) doesn't work for me.

How can I make a border out of the drawing?