added line and square drawing methods