void OnEnable()
 {
     filePath   = "";
     working    = false;
     committing = false;
     texture    = null;
     ti         = null;
     EditorUtility.ClearProgressBar();
     colorPickerMode = COLOR_PICKER_MODE.NONE;
 }
 void ReadTexture()
 {
     if (filePath.Length > 0)
     {
         CustomWWW www = new CustomWWW("file:///" + filePath);
         if (texture == null)
         {
             texture = new Texture2D(1, 1);
         }
         www.LoadImageIntoTexture(texture);
         ti            = new WMSK_TextureImporter(texture, bgColor, (int)detail);
         goodColorsTex = null;
     }
 }