}
}
private void openImageFromFile() {
try {
BrowserDialog dialog = new BrowserDialog("Select a new Image", new PictureFileFilter());
File file = dialog.showOpenFileDialog(this, null);
if (file != null) {
if (file.toString().toLowerCase().endsWith(".svg")) {
SVGtoBufferedImageConverter converter = new SVGtoBufferedImageConverter();