Better colour picking algorithm