Add function to detect faces from a image byte array