public IImageManager Load(string resource)
        {
            IImageManager imageManager = null;

            if (!(string.IsNullOrWhiteSpace(resource)))
            {
                // See if the resource is a Folder
                if (Directory.Exists(resource))
                {
                    imageManager = new FolderImageManager(resource);
                }
                else if (File.Exists(resource))
                {
                    var fileExtension = Path.GetExtension(resource).ToLower();
                    if (CompressedFileImageManager.SUPPORTED_FILETYPES.Contains(fileExtension))
                    {
                        imageManager = new CompressedFileImageManager(resource);
                    }
                    else if (PDFImageManager.SUPPORTED_FILETYPES.Contains(fileExtension))
                    {
                        imageManager = new PDFImageManager(resource);
                    }
                    else if (FolderImageManager.SUPPORTED_FILETYPES.Contains(fileExtension))
                    {
                        imageManager = new FolderImageManager(resource);
                    }
                }
            }

            return(imageManager);
        }
			public IImageManager Load(string resource)
			{
				IImageManager imageManager = null;
				
				if (!(string.IsNullOrWhiteSpace(resource)))
				{
					// See if the resource is a Folder
					if (Directory.Exists(resource))
					{
						imageManager = new FolderImageManager(resource);
					}
					else if (File.Exists(resource))
					{
						var fileExtension = Path.GetExtension(resource).ToLower();
						if (CompressedFileImageManager.SUPPORTED_FILETYPES.Contains(fileExtension))
						{
							imageManager = new CompressedFileImageManager(resource);
						}
						else if (PDFImageManager.SUPPORTED_FILETYPES.Contains(fileExtension))
						{
							imageManager = new PDFImageManager(resource);
						}
						else if (FolderImageManager.SUPPORTED_FILETYPES.Contains(fileExtension))
						{
							imageManager = new FolderImageManager(resource);
						}
					}
				}

				return imageManager;
			}