Fixed return value on threshold(), also destPoint seems to work now