Added code for texture mapping