[DONE] Fix user avatar exceptions, added logs

use sprintf