fix png decoding (accidently broke it before)