Fixed display bug in monochrome jpegs