Fix gallery auto-orientation feature
Merge branch 'alpha' for fixing orientation feature