Rewrote bif2png converter in C++