Add -(CGRect)rectForKey method for rectangles