implemented file chooser from gallery