         value = segmentation[i]
         i++
 
-        #continue if value is 0
+        continue if value is 0
 
         #is segment already there
         segment = _.detect(segments, (s) -> s.value is value)



    segment.artPath = path


    { segmentation, dimensions } = input

    for i in [0...2] by 1
      @smooth(dimensions, segmentation, 5)

    segments = @getSegments(segmentation, dimensions)

    @setAbsoluteCenter(segments)
