removed AirResContext.getCanvas()
Fixed comment
Save amount of segments to the context
Make sure segments are not equals 0