png: support for bit depth != 8 (16 bits images are stripped for now)
png: fixed leaks in read/write