Added code for motion trails. (in a separate folder)