private void DisplayImage()
    {
        EditorGUILayout.LabelField("", GUI.skin.horizontalScrollbar);
        GUILayout.Label("Set Heightmap Texture ans scaling", EditorStyles.boldLabel);
        EditorGUILayout.PropertyField(heightMapTexture);
        EditorGUILayout.PropertyField(heightMapScale);
        EditorGUILayout.PropertyField(heightMapAmplitude);
        EditorGUILayout.PropertyField(heightMapAutoScale);

        if (GUILayout.Button("Generate HeightMap"))
        {
            terrain.ImageHeightMap();
        }
    }