Shift memory management to send allocated pointers to Image::PNG::Libpng.