I could not find a solution to my problem on google. Hope one of you can help me. I am new to Latex and use a template I got from a beginners course.
I want to put multiple pictures (PNG format) in my latex document. Though, when I compile it the pictures are not in the pdf. I see a black border and the path of the image inside it. The caption does appear.
You can see it in this picture:
I have the following code in the preamble.
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage{subfiles}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{ltablex}
\usepackage{booktabs}
\usepackage{tcolorbox}
\usepackage{caption}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{setspace}
\usepackage{placeins}
\usepackage[hidelinks]{hyperref}
\usepackage{chngpage}
\usepackage{dcolumn}
\usepackage[toc, page]{appendix}
\usepackage{chngcntr}
\usepackage{subcaption}
\usepackage{import}
\renewcommand{\baselinestretch}{1.5}
\usepackage[english]{babel}
\usepackage{apacite}
\usepackage{natbib}
\usepackage[backend=biber, maxcitenames=2, style=apa, sorting=anyt]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\addbibresource{bibliography.bib}
\usepackage[autostyle, english = british]{csquotes}
\usepackage{geometry}
\geometry{margin=2.5cm}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\usepackage[compact]{titlesec}
\titleformat{\chapter}{\LARGE\bfseries}{\thechapter}{1em}{}
\titlespacing{\chapter}{0pt}{-20pt}{10pt}
\titleformat{\section}{\large\bfseries}{\thesection}{1em}{}
\usepackage{parskip}
\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\fancyfoot[l]{\thepage}
\fancyhead[r]{\nouppercase{\leftmark}}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\headrulewidth}{0,5pt}
\fancypagestyle{plain}{}
\hyphenation{con-sti-tu-tion-al}
And in the section where I want my figure I have the following code (I have my images in a seperate folder called images):
\begin{figure}
\centering
\begin{subfigure}[b]{0.4\linewidth}
\includegraphics[width=\linewidth]{images/instrumenta.png}
\caption{Instrument a}
\label{fig:instrumenta}
\end{subfigure}
\begin{subfigure}[b]{0.4\linewidth}
\includegraphics[width=\linewidth]{images/instrumentb.png}
\caption{Instrument b}
\label{fig:instrumentb}
\end{subfigure}
\caption{Correlation figures instruments}
\label{fig:corinstruments}
\end{figure}
Hope someone can help me! Thank you in advance.