added support for libpng16