gd_scale.c now reads and writes png instead of jpg.