Changed rgb to colour to allow for rgba and cmyk
Fixed detect_nth_boundary and implemented percent fuzz