Added a Texture editing function