Round crop rect dimensions to capture max area

Previous code could crop border pixels of an element sometimes.
Now. coordinates are rounded down and dimensions are rounded up,
so crop rect will be maximal.