fixed camera preview bug
handling portrait scanning