added image resizing to visual odometry