I have a document I am writing for my math class. I have this code here
\begin{center}
\begin{figure}[!htb]
\includegraphics[width=0.5\linewidth]{14-1Ex2.png}
\end{figure}
\end{center}
that is supposed to recenter and rescale the image. However, I end up with something like this:

How can I get it to both center and rescale?