I need to put two images within a single column in a two-column page such that each subfigure will have a border around it. I have tried the following:
\begin{figure}[t!]
\centering
\begin{subfigure}[t]{\textwidth}
\tcbox[colback=white] {\includegraphics[width=0.1\textwidth]{img1}}
\caption{img1}
\end{subfigure}
\quad
\begin{subfigure}[t]{\textwidth}
\tcbox[colback=white]{\includegraphics[width=0.1\textwidth]
{img2}}
\caption{img2}
\end{subfigure}
\caption{Comparison of images (a) img1 and (b) img2}
\end{figure}
However, I am not able to place the images properly. I want them to be placed side by side and both the images and the text should be center aligned. How can I do this?
