choose random pixels as the starting points for kmeans

* Also limit possible # of iterations so errors don't just lock
  up the browser forever