Adjust region/size calculation to use ceil rounding to match OSD #250, add algoritm for rotation size calculation #251