png: fix y orientation and automate power-of-two texture handling

images can now be loaded on the fly with png->img