Fix redundant jQuery usage
Avatar dialog: added error message of file type