handle \includegraphics{foo.png}