Save the image as png.
where the image is saved
compression level
Save using Adam7 interlacing
See Implementation
Save the image as png.