made cahnges to video resize system to make it more correct