draw line rectangle and polygon