fix AUTO_GENERATE_AVATAR_SIZES being ignored
fix AttributeError if no AUTO_GENERATE_AVATAR_SIZES was specified at all