public Element(String name, double price, String imageURL) {
        this.name = name;
        this.price = price;

        try {
            this.imageBuff = ImageIO.read(new File(imageURL));
        } catch (IOException e) {
            JOptionPane.showMessageDialog(new JFrame(), "   " + name,
                    " !",
                    JOptionPane.ERROR_MESSAGE);
        }
    }