show error dialog box when taking photo fails