use the edited image in allowEditing mode, and dismiss the modal view on cancel