Conversion and morphology operations to support image processing on 1BPP TIFFs