The images are prepared while adding the avatar, the animations are retained if Imagick is enabled, custom coding can be used to force GD to be used to process the small avatars that are used in thread listing, which do not allow animations by default.
Or maybe something like this:
http://stackoverflow.com/questions/3688460/stopping-gif-animation-programmatically though I would prefer the first method.