Renamed to encodePng, left for backward compatibility.
List<int> writePng(Image image, {int level = 6}) => encodePng(image, level: level);