searching for face by color and optimizing search template