using block for dismiss the modal camera window.