import to_binary from split.py instead
whitespace
dim to shape
if pass a string, read it first
use PIL for reading / writing
use PIL
add tests for pytest