Use safer png error construct
Merge pull request #29 from gameclosure/fix-png-err2

Use safer png error construct
Merge fix from internal branch
Merge fix from upstream
Compute all 4 vertices with fewer operations than before
Merge pull request #30 from gameclosure/fix-clip

Compute all 4 vertices with fewer operations than before