Text To Image Binary Encoder In Python