Add auto-orientation option to images