fix globals support in jbig2. It seems that the levigo library support concatenating the globals and image stream.