Avatar redimention should use max-width/height to avoid streatching

Signed-off-by: emanuele <emanuele45@gmail.com>