switching to qgraphicsitem and qgraphicslineitem classes and correction of line's bounding rect

The use of making groups is not needed. Appending an item as a whole to the list makes things work similarly. Also this commit solves fifty percent of the issue #49 by correcting bounding rectangle for line.