Working BW conversion, wrong addresses did not take into consideration upside down files. Pixel values were incorrectly treated as signed.