added animation for switching between selecting camera and taking photo