fvsdk-enrol: Now extracting frames inside the thread to prevent using huge amounts of memory