takes in an animated gif and returns all the frames as individual images