Face Recognition on Mobile Devices Based on Frames Selection