Updated so that face detection works for images chosen by a user or from camera shot.

Updated so that face detection works for images chosen by a user or
from camera shot.