added image loading and file chooser