// To update reload all images into main list
        private void UpdateMain()
        {
            // Clears list
            imageMainList.Clear();

            // Loops through database lists
            for (int i = 0; i < database.Rows; i++)
            {
                ImagePreview image = new ImagePreview(database.BinaryList[i]);
                imageMainList.Add(new ImageStruct(database.IdArray[i], database.NameArray[i], image));
            }
            UpdateList();
        }