add borderRadius and drawGradient flags