Changed how the grid of tracking points is created

Just made some slight changes to be able to change the percentage of
pixels you want to track in an image instead the number of pixels.