Adding functions for dealing with animated GIFs.

The addition of Image.coalesced and Image.optimized_for_animated_gif will allow
animated GIFs to be resized without issue.