add alert when detech failed and save photo