resolve #17 remove rectangle primitive from the C API