Fixed version of pngdecoder