Added new implementation of PNG compression