added the ability to set user avatar image and user id from code