updated computer vision code. Very finicky in low light