please check if png.c works for all inputs