Made detectFaces() run in the background