Adapt to libpng-1.6 by replacing png_sizeof() with sizeof