Camera rotation using quaternion