added updateBackgroundModel parameter and release method