class extends: error message when extending javafx.gui.Image