Better stave recognition. Not perfect, only detects the first stave for now