various improvements

did some small improvements to make video stabilizer demo