pngdec: set reference correctly for corepng.