Fix Avatars not displaying correctly on Windows.

Temporary fix not tested on Linux and MacOS.
Couldn't find yet the cause of the problem.