old libpng
working on output