Added possibility to use textures; improved rendering.