bug fix in mexSaveSuperpixels