Sped up image conversion by manipulating binary image data directly instead of using GetPixel / SetPixel.