include png-code only if HAVE_PNG is defined