Also when OP tries to install libpng the command-line is unable to locate that pkg.
My guess is that it's one of those packages. I don't know which one, as this is way outside of my wheelhouse. My GIMP skills are zilch.
But, the libpng that they need might be one of those, as there is no 'libpng' file by that name.