nimrod wrapper for libpng