Bugs fixed in readPNG.