python imaging library – PIL not extracting the frames of GIF correctly


I am trying to extract frames of a GIF but when I am opening them, I am getting unexpected color(in the provided GIF, I am getting Pink color) in the background. This is happening with all the frames except with the first frame(frame number = 0). I tried to change color palette but observed no changes.

Code:

from PIL import Image

def main():
    im = Image.open('Original_GIF.gif')
    for frame_num in range(0, im.n_frames):
        im.seek(frame_num)
        im.show()


if __name__ == "__main__":
    main()

Unexpected Result:
unexpected_frame_1

Expected Result:
expected_frame_1

Here is the original GIF:
Original_GIF