Implemented saving images for face detection and cat replacement