Encoding Black and White Images