# How to keep image file extension when exporting LyX to LaTeX

With the workflow:

LyX -> LaTeX -> ePub (via pandoc)

And I'm having a problem where an image filename included in LyX (say "image.jpg") will be converted into "image" (no extension) in LaTeX. pandoc will then obviously complain it can't find the images.

Is there any way (short of parsing the LaTeX and adding the file extensions externally) of configuring LyX to keep them? (I'm using LyX's own export to LaTeX)