use image from scalafx instead of javafx