Initial PNG support code.