my attempt to fix #3735

an alternative to this would be to do something like
`\DeclareGraphicsExtensions{.pdf}` in the preamble
fix another place we were stripping .pdf file ext
Merge pull request #3736 from ivanov/fix-3735

Don't strip pdf extension from figure filenames

It seems to have been an erroneous assumption that this was necessary.

closes #3735