added estimated frame as parameter out_frame