added support for rect shape
store rect shape