public int[,] get1(ReferenceCharacterDescriptor referencecharacterdescriptor, int i)
 {
     int[,] ai = loadImage(referencecharacterdescriptor, i);
     if (ai != null)
     {
         return ai;
     }
     return ai;
 }
 private int[,] loadImage(ReferenceCharacterDescriptor referencecharacterdescriptor, int i)
 {
     try
     {
         Bitmap file = getImageFile(referencecharacterdescriptor, i);
         return fromImage(file);
     }
     catch (Exception)
     {
         return null;
     }
 }
 private Bitmap getImageFile(ReferenceCharacterDescriptor referencecharacterdescriptor, int i)
 {
     string p = path + "\\" + "Ref_" + referencecharacterdescriptor.ToString() + "\\" + i.ToString() + ".png";
     return new Bitmap(p);
 }