beautify code
fix bug that was causing the missing of the 255th object of an image when running connected components