fixed log file and camera preview size crash