use accessor functions to access deprecated members of the png_structp