The sidecar plugin and there this experimental setting topic list enable thumbnail black border elimination is messing avatar uploads.
topic list enable thumbnail black border elimination
Kind of more detailed case can be found here: