merge new function for playing Gifs to master branche.