Updated Terrain Component to work with Textures

and fixed line endings in terrain.cpp file