Added support for gdImageCompare().
Checkpoint. Basic PNG encoding/decoding test works.
Basic read+encode/write+decode cycle works.