add preview layer before starting capture