fixes #528

Accept 0 as transparency value.
Added test for Palette transparency=0
Updated changes
Merge pull request #533 from wiredfool/fix_528

Fix for  transparency = 0 in PNG mode P images