public void LoadImage() { //Should not be loaded until the pin is going to be displayed, in order to save space.
        if (image == null) {
            try { //Try to load the image from file
                image = ImageIO.read(this.getClass().getClassLoader().getResource(filePath));
            }
            catch (IOException e) {
                /*try { //If the image cannot be loaded from file, try to load the image from the web
                    image = ImageIO.read(new URL(this.filePath));
                }
                catch (IOException ee) {
                    System.out.println("Could not load picture for: " + this.name + " #" + this.pinNumber);
                }*/
            }
        }
    }