added CGRect and CGSize support.