fix a bug regarding the texture size in SimpleFlatTerrain class.