LaTeX - Figures and images

This is better explained here: https://www.sharelatex.com/learn/Lists_of_tables_and_figures but I keep these notes as I find it useful to have a reference I can relate to.

% graphicx for images
\usepackage{blindtext}
\usepackage{comment}
\usepackage{array}
\usepackage{graphicx}
\graphicspath{ {figures/} }

...

\listoffigures
\listoftables
\newpage

...

\section{Some section}

Some text...

\begin{figure}[htbp]
\centering
\includegraphics[width=\linewidth]{missing}
\caption{The maven lifecycle(missing)}
\end{figure}

Some more text...