private void ToGrayscaleButton_Click(object sender, EventArgs e)//TODO maybe i can add different grayscale computing methods
        {
            if (programData.loadedImage == null)
            {
                return;
            }

            loadedImagePictureBox.Image = ImageAlgorithms.Convert2Grayscale(programData.resizedImage, GrayscaleModels.calorimetricGrayscale);
        }