refactor of VisualScore and ScoreGraphicsItem