camera works without crashing