squashed and merged @apsdehal's commits for animated smileys but somethings are wrong
fixes errors with @apsdehal's code for animated smiley, its working now