private void Validate()
{
if (Directory == null)
throw new InvalidOperationException("Directory is null");
if (Images == null)
throw new InvalidOperationException("Images are null");
if (Directory.Entries.Length != Images.Length)
throw new InvalidOperationException("Directory Entries count does not equal to Images count");
}