fix 16-bit png decoding