Fixed face detection defect with cached bitmaps

Signed-off-by: Jorge Luis Sarmiento Herrera <yorchsarmiento@gmail.com>