Bug fix

Fixed a bug when sometimes image unexpectedly changed when motion
stopped.