Add regression test for issue #20439 to ensure that JBIG2 images with more than 4 referred-to segments are handled correctly.