@Override
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2d = (Graphics2D) g;


            for (int i = 0; i < 3; i++) {
                g2d.drawRect(i * fieldWidth, 0, fieldWidth, fieldHeight);
            }
            g2d.drawString("Оригинал", fieldWidth / 2, fieldHeight + 30);
            g2d.drawString("Выделение", fieldWidth * 3 / 2, fieldHeight + 30);
            g2d.drawString("Фильтр", fieldWidth * 5 / 2, fieldHeight + 30);


            if (image != null) {
                g2d.drawImage(image, null, 0, 0);
            }
            if (image2 != null) {
                g2d.drawImage(image2, null, fieldWidth, 0);
            }
            if (image3 != null) {
                g2d.drawImage(image3, null, fieldWidth * 2, 0);
            }


        }