[Tex/LaTex] Strike out over graphics

graphicsstrikeout

I have a document with a graphics and I want to replaced this graphics with another as part of a revision. To make this clear I want to show the old version of a figure next (or below) to the new version, but struck out.

I tried using the changes package (\deleted around the \includegraphics command) which gives an error and also with the sout package, which gives a weird result.

How can strike out a graphics reliable in LaTeX?

\documentclass{article}
\usepackage{graphics}
\begin{document}
\begin{figure}
   \includegraphics{old} \\ %strike this figure out, with a diagonal, horizontal or cross lines
   \includegraphics{new}
   \caption{description}
\end{figure}
\end{document}

Best Answer

You can modify the selected answer to this question to get what you've asked:

\documentclass{article}
\usepackage{graphicx}
\usepackage[many]{tcolorbox}
\newtcolorbox{cross}{blank,breakable,parbox=false,
  overlay={\draw[red,line width=5pt] (interior.south west)--(interior.north east);
    \draw[red,line width=5pt] (interior.north west)--(interior.south east);}}
\begin{document}
\begin{cross}
\begin{center}
\includegraphics[width=2in]{P1.pdf}
\end{center}
\end{cross}

\begin{figure}[h!]
\begin{center}
\includegraphics[width=2in]{P2.pdf}
\end{center}
\caption{Use the correct diagram!}
\end{figure}
\end{document}

The output in Gummi looks like this: enter image description here