issue #19295: more robust image paths