[Bug 780670] After upgrade to 12.2, TkImg's jpeg support is broken