Fix Qt GUI PNG headers and interlace handling

Addresses the root cause of the warnings in #1352 by removing only the bad chunks and modifying the PNG decoder code.