Remove unneced code.
Make somagic source 30fps.
Add capture_state
Make bounding box generated by linear algebra.