title: JavaFX show photos in ImageView not working
body: <p>I'm trying to display a photo depending on the BMI of the user.. So for example if your BMI is under 18.5 it will show a thumbs down. </p>
  
  <p>All the images are located in my resource folder. But the image doesn't show up in the program as it should.. I've tried serveral images to see if it had something to do with the resolution. This is my code: </p>
  
  <pre><code> @FXML
  private void tellUserStatus(){
      date = new Date();
  
      if (bmi&lt;18.5){
  
          System.out.println(dateFormat.format(date)+"User is underweight - BMI is under 18.5");
          BmiStatusMessage.setVisible(true);
          BmiStatusMessage.setText("You are underweight");
  
          File underweight= new File("underweight-thumbsdown.png");
          Image image = new Image(underweight.toURI().toString());
          BmiConclusion.setVisible(true);
          BmiConclusion.setImage(image); 
      }
  }
  </code></pre>
  
  <p>BmiStatusMessage is a Label, and BmiConclusion is an ImageView. They are both linked with the fxml file. </p>