To draw a border around an image, I'm using rectangle from TikZ. Within the rectangle, I want to label the diagram. But the image is such that it occupies the rectangle's full space, so there is no space left to write the label. If I increase inner sep, it adds space in all 4 directions, which I don't want to happen. I want to add extra space at the bottom only. If I set a minimum height for the rectangle, then the image gets centered, and so there will be extra space at the top. I don't want this to happen either. I couldn't find an option to align the image to the bottom of the rectangle. Any help is appreciated.
PS: Currently, I'm adding an empty rectangle and then adding the image separately. Due to this, the inner sep for the rectangle will be zero. I've three similar diagrams, and I've to set inner sep for the other two rectangles also to zero. As a result, for the first diagram, a block within the diagram overlaps with the border rectangle.
% Contains figures for the presentation
%! Author = Nagabhushan
% Preamble
\documentclass[11pt]{article}
% Packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{makecell}
\usepackage{media9}
\usepackage{pgfplots}
%\pgfplotsset{compat=1.17}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows, positioning, calc, decorations.pathreplacing, external}
\tikzexternalize[prefix=figures/]
\newcommand{\etal}{\textit{et al.}}
% --------------------------- TikZ blocks - Start --------------------------------%
\tikzstyle{container} = [rectangle, rounded corners, draw=black, dashed]
\tikzstyle{circle-label} = [circle, text centered, draw=black]
% --------------------------- TikZ blocks - End --------------------------------%
% Document
\begin{document}
\tikzsetnextfilename{Model_BlockDiagrams}
\begin{tikzpicture}[node distance=2cm]
\node (main) [container, inner sep=0] at (current page.north) {\includegraphics[width=\linewidth]{../../images/MainArchitecture_BlockDiagram.pdf}};
\node (mcs) [container, below of=main, yshift=-4.5cm, inner sep=0] {\includegraphics[width=\linewidth]{../../images/MCS_BlockDiagram.pdf}};
\node (rfd) [container, below of=mcs, minimum height=4.5cm, minimum width=\linewidth, yshift=-4cm] {};
\node (rf-image) [below of=rfd, yshift=2.5cm]{\includegraphics[width=\linewidth]{../../images/RFD_BlockDiagram.pdf}};
\node [circle-label, align=center, below of=main, right of=main, xshift=3.5cm] {A};
\node [circle-label, align=center, below of=mcs, right of=mcs, xshift=3.5cm, yshift=-0.3cm] {B};
\node [circle-label, align=center, below of=rfd, right of=rfd, xshift=3.5cm, yshift=0.3cm] {C};
\end{tikzpicture}
\newpage
\end{document}
Output: