Fixed giant avatars in Firefox

#787