Added superpixel generation code