Image conversion and morphology operations cooked up to support processing 1BPP TIFFs