Created C++ wrapper around libpng