fixing save of transparency palette png-images

this time everything is correct.


Every other test (even the complicated screwed up images) finished just fine with the current master 2.0.0. Will test it again on 64bit linux in the next days.