Fixed regression introduced by rev 1137971: Bi-level images that are generated as page segments and don't need to be resampled produced garbled output because the size of the image data got set to wrong values.