modify SuperPixel to class, need tests