code: function detectFaces(img, faceSize = 150) {
        return locateFaces(img)
          .then(rects => getFacesFromLocations(img, rects.map(mmodRect => mmodRect.rect), faceSize))
      }
docs: /* extract all faces from an image