Use Numpy percentile instead of scipy's scoreatpercentile

Allows the image client to be used without scipy being installed, and only a couple of lines more code. Requires #467 to be merged first, after which this will be rebased.