Added orientation changes support.
Merge pull request #17 from danylokostyshyn/rotation

Added orientation changes support.