Move preview helper functions to baseacamerabinsrc so they can be reused by multiple camerabin2 sources.