[guilib] Add AnimatedImageFrame class and prepare iimage to support animated images.
[Gif] Make GifFrame an AnimatedImageFrame.