Fixes #12437 by reverting commit 75921ceaf4
due to
reports of regression where processing of the generated TeX file fails due to
bad path specificiation for image files.
Change was introduced in bug fix for #10495.
Bugs #12437 and #12697 reported the regression and confirmed that reverting the
change fixes the regression.