template of gui, capture photo , save photo in app directory with choosen name