Color and Image conversion for JavaFx