Added python server file to avoid using external server for $.getImageData
Revamped picture choosing algorithm to kd-tree (from github). Runs faster and works better.