a sample implementation of camera fragment.