Updated apngopt.c to latest version