Only rotate camera preview layer when landscape or portrait

Fixes #59