fir bugs in apng and svg decoders