rake task to regenerate avatars

Adds the `avatars:regenerate` rake task to force re-generation of all the uploaded avatars. This is useful when changing the `allow_animated_avatars` setting (will freeze or animated avatars depending on the value of the setting)