resignFirstResponder when the view is destroy & Only disable image resizing in Firefox