added button for avatar upload
testing avatar uploading
fixed up thumbnail function