Coding binary Photos