Change type names.
Move PNG handling functionality to gfx/png.c
Automatic tinf_init invocation.