Consolidate all rounded rectangle implementation into one