There is a place in the web for animated images, which should be obvious from how much people still use GIF in 2022. Images can be easily embedded in user contents by a wide variety of websites.
Also if you forbid animated gifs, you should go one step further and forbid animated SVGs!