Using Redactor Custom Styles plugin we're adding a button with options to toggle classes on figures. It mostly works except for images. Here's an entry in our redactor config.
"customStyles": {
"figureStyles": {
"icon": "<span class='fas fa-images'></span>",
"dropdown": {
"Center Max 70%": {
"api": "module.block.format",
"args": {
"tag": "figure",
"class": "image-center-max-70",
"type": "toggle"
}
}