beginnings of a PNG loader