Fixed issue where capture of photo on ipad was crashing on return to app