Javafx image loading fix