Auto-aligning BEFORE resizing