Access to OptimizeImageTransparency, OptimizeImageLayers, and GetQuantizeInfo

There's some tests in there from a while ago that went in after the last pull request, too... hopefully they don't bork the merge. I'll try to be better about working on branches.

Open to suggestions for testing, as usual.