Fix JPX image rendering that regressed due to several security fixes.