How to make the application use the terminal's photographing function