add auto focus function to the camera, the code was awful