Added crop and resize methods, tested on in face detection function