Change CURVE_POINT_SIZE macro to dynamic int variable