Test program to check format of PNG image