APNG: eliminate need for deinterleaving

By setting the 'interleaved' flag differently, the deinterleaving logic
can be removed, which prevents the reader from allocating another image
array.  This improves performance and memory usage for larger images.

Fixes #10796.
Prevent misleading IOException during config file parsing