draw figure module