Removed unused member
Formatting
Fixed crash when there is only a single color
Add libpng in package
automated submodule update
Merge pull request #1 from SuperV1234/master

Various fixes and sync with original project