Adding code for texture mapping -- buggy right now