testtopng.py: Review comments by Gareth Rees