I would like to arrange four images in a similar style to this code taken slightly modified from Four Arranged Figures are offset .
\documentclass{article}
\usepackage[demo]{graphicx} % leave off demo option in real program
\renewcommand{\thefigure}{\alph{figure}}
\begin{document}
\begin{figure}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{a.pdf}
\caption{a)}
\label{fig:immediate}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{b.pdf}
\caption{b)}
\label{fig:proximal}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{c.pdf}
\caption{c)}
\label{fig:distal}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{d.pdf}
\caption{d)}
\label{fig:combined}
\end{minipage}
\end{figure}
\end{document}
My images are mostly white so I would like them to touch but to add a vertical and horizontal line in a cross shape to separate them. The two lines should cross in the middle and stretch to the top and bottom and left and right of the images respectively.

