Add a CGRectGetCenter function.