Auto detect orientation
update code to example file
Merge branch 'feature/change_rotate_method' into develop