Bug fix; if user cancels taking a photo, don't crash!