Round resize calculations up, close #862.