Adds optimization when resizing gifs to hopefully prevent ugly gifs.

Note: I HATE HATE HATE that tumblr's max image size is 1MB. Who does that?
Absolutely everywhere else is 2MB.