Pre-processes images for OpenCV face recogniser