note on chmod 777 on the avatar folder
avatar folder writing rights check
avatar folder writing rights check