debugging issues - app was crashing when importing or taking a photo