Avoid static in CaptureFragment.

Retain the instance, so that it is not recreated. This way
it is safe to store data in a fragment.