This is the image I am trying to insert:
This is the relevant code used to insert it into my .tex file with \documentclass{article}. Previous line:
where \textit{tooffsets[i + 1]} depends on \textit{toffsets[i]}.
and then the code to insert the image:
\begin{figure}[H]
\includegraphics[width=\textwidth]{Graphics/cpu.PNG}
\caption{Visualizing sequential CPU algorithm}
\end{figure}
I am using \usepackage{float} to enable [H].
But it is not being rendered properly in the PDF:
In that the image is pushed to the right, appears above the text which comes before it in the code and there is no caption.
The other places where I have inserted images similarly, do not have alignment issues.
Related questions:


%---------------- show page layout. don't use in a real document! \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \renewcommand*\ShowFrameColor{\color{red}} %---------------------------------------------------------------%
\begin{figure}[ht] \includegraphics[width=\textwidth]{Graphics/cpu.PNG} \caption{Visualizing sequential CPU algorithm} \end{figure}
– Zarko Feb 22 '20 at 13:53\end{document} `
\fbox{\includegraphics{...}}and see how big is really is. – John Kormylo Feb 22 '20 at 16:24