some libpng stuff