added smooth preview for front camera