Added code to read in png files with libpng and use textures.