fix possible blurry effect on layout items

It is possible to get blurry items if their size is not integer.
This commit fixes this behavior by calling CGRectIntegral on the item frame.