Related to #11 - Part of the Report of Daniel Hornung

See http://sourceforge.net/p/pngwriter/bugs/1/