Fixed the issue while create GIF image for MP4 videos