support rectangle custom-shapes