Build a gif image from a list of images or a video