Stationary and Periodic Background Decision Using Improved MOG Algorithm