add camera stablization function