Reducing padding; reducing speed; fixing scaling ratio