The picture gallery shown now before you log in is not an animated GIF. It’s a combination of Javascript and static pictures.
In any case, I uploaded some animated GIFs via the REST API today, and they all worked fine.
They might have put a restriction on what types of pictures can be used in the profile, for whatever reason.