preview callback for front camera
refactor code
use preview instead of imageview for single camera, version 1.1.6