Added support for auto-orient option to resizeArgs