added cb_preview2 to save preview frame to jpg