gd_scale.c now reads and writes png, tiff and gif as well as jpg.