changed RectF to Rect as there's no need for the position to be floating pt