Isn't the calculation of width and heigth off by -1? So should get a +1