Use libpng to load PNGs. Fixes #4689.