fix camera preview (thanks Eugene373)