Unified quality measurement with pngquant
Refactoring
More weight on transparent colors
Apply gamma only to color channels