Start of the actual PNG loader, input and filtering classes