my attempt to fix #3735

an alternative to this would be to do something like
`\DeclareGraphicsExtensions{.pdf}` in the preamble