public void ImageConvert(string input, string output)
        {
            try
            {
                //Gets and saves ImageName and directory
                List <string> file = input.Split('\\').ToList();

                List <string> path = new List <string>();
                for (int i = 0; i < file.Count - 1; i++)
                {
                    path.Add(file[i]);
                }


                DirectoryInfo dirInfo    = new DirectoryInfo(string.Join("\\", path));
                FileInfo[]    ImageFiles = dirInfo.GetFiles(file.Last());
                if (ImageFiles.Count() == 0)
                {
                    MessageBox.Show("No File Found. Please check you have selected correct existing file!");
                }

                //Using foreach for future upgrade where you would convert multiple images at once
                foreach (var image in ImageFiles)
                {
                    //Saves the image
                    string   outputpath;
                    string[] separatedPath;
                    ConvertImage(input, output, file, image, out outputpath, out separatedPath);

                    string newDirect   = outputpath;
                    string newFileName = separatedPath.Last();

                    ImageToPNG imageToPNG = new ImageToPNG();
                    imageToPNG.FileName        = newFileName;
                    imageToPNG.DirectoryPath   = output;
                    imageToPNG.OutputDirectory = newDirect;
                    imageToPNG.Type            = "Image";

                    string message = "Converting Done!";
                    string title   = "Done!";
                    MessageBox.Show(message, title);
                    ConvertorDbService.AddImageConvert(imageToPNG.FileName, imageToPNG.OutputDirectory, true);
                }
            }
            catch (ArgumentNullException)
            {
                MessageBox.Show("Path not setted! Please set both Directories!", "Converting error");
                ConvertorDbService.AddImageConvert(input, output, false);
            }
            catch (ExternalException)
            {
                MessageBox.Show("Path not setted! Please set both Directories!", "Converting error");
                ConvertorDbService.AddImageConvert(input, output, false);
            }
        }