Added PNG loading and processing textures.
Fixed bug with textures