updating difference between frames method (to replace zero difference with the previoius values)