I have an overview image (let's call it A) of the task. The task is divided into two. I have the detailed description of each sub-tasks (let's call it B and C).
I am trying to put them together using TikZ. I am trying to generate something similar to this-

See below the code snippet-
\documentclass{standalone}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows, positioning}
\tikzset{
box/.style = {draw, rectangle, minimum width=2cm, minimum height=2cm, line width=0.5mm},
line/.style = {line width=0.5mm},
}
\begin{document}
\begin{tikzpicture}[node distance=2cm]
\node (a) {\includegraphics[width=4cm]{image-a}};
\node (b) [box, draw=green, fill=green!20, below of=a, yshift=-2cm] {\includegraphics[width=10cm]{image-b}};
\node (c) [box, draw=orange, fill=orange!20, below of=b, yshift=-2cm] {\includegraphics[width=10cm]{image-c}};
\coordinate[left of=a, xshift=-2cm] (t1);
\coordinate[right of=a, xshift=2cm] (t2);
\draw [line, draw=green] (a) -- (t1);
\draw [line, draw=green] (t1) -- (b);
\draw [line, draw=orange] (a) -- (t2);
\draw [line, draw=orange] (t2) -- (c);
\end{tikzpicture}
\end{document}
The code produces the following output-

Following are the issues with generated diagram-
- The positioning of the lines. The inclined lines aren't preferred. Better to use vertical lines.
- The orange line is going through image B, which doesn't look nice. It would be wise to keep it back.
- Lots of manual positioning is done in the code in order to place these images.
How do I get the diagram similar to the first diagram? I would definitely prefer less manual positioning.

example-image-a, not `image-a. You should also have a look at Difference between "right of=" and "right=of" in PGF/TikZ – Torbjørn T. Mar 06 '18 at 10:13image-a.pdfwhich is exactly same asexample-image-a. I am sorry that this information wasn't provided. However the code works. – ravi Mar 06 '18 at 10:22