Mv figWrite to common dir
Remove useless codes
Refactor getSuperpixels