Helper methods to force sizes to have integral width/height.