Moving spectrogramplot to common so it can be reused