Loading a GIF in Processing

It only shows the first frame of a gif as a static image. I want to import the gif as an animation.