If images come in at 1bpp, create a byte and simply change the bits that are 1 to a 255, and leave the bits that are 0, at 0.