Add PNG encoder.
Add BGR24 saving mode.
Fix CXX_BUILD.