Changed Rect to use integers to reduce jaggedness

Trying to draw at a fraction of a pixel sometimes causes jagged edges,
so Rect now rounds to the nearest pixel