modified camera activity to not crash