avoid unused arguments compiler warning
avoid png_struct leak - refs #1783