loaders/png: fix png reading