optimized roundrect drawing