Raise an error when unsupported PNG type is found