Fixes gif images from being resized. Fixes #557.
Code optimization, props @maxme.
Merge pull request #558 from wordpress-mobile/issue/557-animated-gifs

Fixes gif images from being resized. Fixes #557.