Factor incoming piece lengths
Minimization of stave length without changing stave count
Ignore generate pngs