Adjusts the frame of the preview layer, when changing orientation.
Merge pull request #1 from beheim/fix-orientation-issue

Fix orientation issue.