public void RemoveFrameReference(int reference) { foreach (Direction d in _directions) { foreach (Frame f in d.Frames) { if (f.Index == reference) f.Index = 0; if (f.Index > reference) f.Index--; } } _images.RemoveAt(reference); }