An approach for improving face recognition in presence of inaccurate detection