I am using overleaf.com to write a document.I am using EUSFLAT 2019 template following is code which I inserted in this
\begin{figure}[!htbp]
\centering
\includegraphics[width=60mm,height=40mm]{images/gcp_security_model1.jpg}
\caption\label{ GCP Anomaly Detection}
\end{figure}
this is how it looks like

I want the image inserted to come before 5 Footnotes and Citations in the figure above.
The code of image is before Footnotes and citations section i.e.
\section{Footnotes and Citations} follows after the code of the image above.
I am not able to understand why is the image coming at the wrong location. The original image is very large in size.
figureenvironments are floats that can move away from where tey were entered in the code. Since your figure does not fit into the page it gets shifted to the next page. In order to avoid the bottom of the previous page to be empty, the text that was originally after the figure now starts at the previous page. – leandriis Mar 14 '20 at 16:32\caption\label{ GCP Anomaly Detection}to something like\caption{GCP Anomaly Detection}\label{myfigure}. – leandriis Mar 14 '20 at 16:35\usepackage[section]{placeins}in the preamble of your.texfile (Between\documentclass...and\begin{document}). – leandriis Mar 14 '20 at 16:38\clearpagebefore\section{Footnotes and citations}but presumably the image you show is not generated by the code you posted as\caption\labelmust give errors rather than the output that you show doesn't it? – David Carlisle Mar 14 '20 at 16:40copied from \url{https://cloud.google.com/solutions/images/partners/for-12.png}" The\urlcommand is defined in hyperref or url packages – David Carlisle Mar 14 '20 at 17:39