Currently the PHP implementation can only detect one face. It results in the wrong focal point when faces are scattered in the image.

I also tested another algorithm implementation that can detect multiple faces, but did not get better results: sometimes it can not detect any face, when the currently used algorithm can.