support for drawing poligons added