implemented writeing gifs to SD-card